Skip to content

[Bug]: 安装失败 #1215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks
xiao-shanfeng opened this issue Apr 27, 2025 · 1 comment
Open
2 tasks

[Bug]: 安装失败 #1215

xiao-shanfeng opened this issue Apr 27, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@xiao-shanfeng
Copy link

Reproduction

安装不了

Describe the bug

通过文档中的安装命令,安装失败
pnpm dlx shadcn-vue@latest init

this is error: Invalid src or dest: cp returned EINVAL (cannot copy /Users/panfeng/Desktop/saas-teasing-wall/node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers to a subdirectory of self /Users/panfeng/Desktop/saas-teasing-wall/node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers) /var/folders/nr/hmsy7n6j0534g49f0wmd8vsw0000gn/T/shadcn-vue/.pnpm/@internationalized+number@3.6.1/node_modules/@swc/helpers

at onLink (node:internal/fs/cp/cp:348:11)
at async copyDir (node:internal/fs/cp/cp:320:19)
at async copyDir (node:internal/fs/cp/cp:320:19)
at async copyDir (node:internal/fs/cp/cp:320:19)
at async copyDir (node:internal/fs/cp/cp:320:19)
at async copyDir (node:internal/fs/cp/cp:320:19)
at async updateFiles (/Users/panfeng/Library/Caches/pnpm/dlx/35e028d926b5ac6615b5f1020a9f175c23b23afb8550f5ce29f13138ae74b98c/196760fcad0-5e40/node_modules/.pnpm/shadcn-vue@2.1.0_@vitest+ui@3.1.2_eslint@9.25.1_jiti@1.21.7__typescript@5.8.3_vitest@3.1.2_vue@3.5.13_typescript@5.8.3_/node_modules/shadcn-vue/dist/index.js:1448:5)
at async addProjectComponents (/Users/panfeng/Library/Caches/pnpm/dlx/35e028d926b5ac6615b5f1020a9f175c23b23afb8550f5ce29f13138ae74b98c/196760fcad0-5e40/node_modules/.pnpm/shadcn-vue@2.1.0_@vitest+ui@3.1.2_eslint@9.25.1_jiti@1.21.7__typescript@5.8.3_vitest@3.1.2_vue@3.5.13_typescript@5.8.3_/node_modules/shadcn-vue/dist/index.js:1709:3)
at async addComponents (/Users/panfeng/Library/Caches/pnpm/dlx/35e028d926b5ac6615b5f1020a9f175c23b23afb8550f5ce29f13138ae74b98c/196760fcad0-5e40/node_modules/.pnpm/shadcn-vue@2.1.0_@vitest+ui@3.1.2_eslint@9.25.1_jiti@1.21.7__typescript@5.8.3_vitest@3.1.2_vue@3.5.13_typescript@5.8.3_/node_modules/shadcn-vue/dist/index.js:1677:10)
at async runInit (/Users/panfeng/Library/Caches/pnpm/dlx/35e028d926b5ac6615b5f1020a9f175c23b23afb8550f5ce29f13138ae74b98c/196760fcad0-5e40/node_modules/.pnpm/shadcn-vue@2.1.0_@vitest+ui@3.1.2_eslint@9.25.1_jiti@1.21.7__typescript@5.8.3_vitest@3.1.2_vue@3.5.13_typescript@5.8.3_/node_modules/shadcn-vue/dist/index.js:1896:3)

[15:12:09] ERROR Invalid src or dest: cp returned EINVAL (cannot copy /Users/panfeng/Desktop/saas-teasing-wall/node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers to a subdirectory of self /Users/panfeng/Desktop/saas-teasing-wall/node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers) /var/folders/nr/hmsy7n6j0534g49f0wmd8vsw0000gn/T/shadcn-vue/.pnpm/@internationalized+number@3.6.1/node_modules/@swc/helpers

System Info

System:
    OS: macOS 11.4
    CPU: (8) arm64 Apple M1
    Memory: 280.64 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 22.15.0 - ~/.nvm/versions/node/v22.15.0/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 10.9.2 - ~/.nvm/versions/node/v22.15.0/bin/npm
    pnpm: 10.3.0 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 135.0.7049.115
    Edge: 135.0.3179.98
    Safari: 14.1.1
  npmPackages:
    vue: ^3.5.13 => 3.5.13

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@xiao-shanfeng xiao-shanfeng added the bug Something isn't working label Apr 27, 2025
@xiao-shanfeng xiao-shanfeng reopened this Apr 27, 2025
@xiao-shanfeng
Copy link
Author

js版本有问题,ts版本没有问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant