Skip to content
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

pnpm create [email protected] windows 安装报错 #113

Closed
5 tasks done
yycdjh opened this issue Apr 28, 2024 · 1 comment
Closed
5 tasks done

pnpm create [email protected] windows 安装报错 #113

yycdjh opened this issue Apr 28, 2024 · 1 comment
Assignees
Labels
Platform: Windows Only on windows Priority: Important 🚑 Affects a lot of users Scope: Cli Status: Solved Type: Bug Something isn't working

Comments

@yycdjh
Copy link

yycdjh commented Apr 28, 2024

What is the current behavior?

pnpm create [email protected] error

? Enter the name of the app: fastjs-app
? Choose the init path for the app: Create a new directory with the app name
? Choose a template: Vanilla
? Choose a template type: JavaScript
? Choose a package manager: Use pnpm (recommended)

Creating project fastjs-app in ./fastjs-app

  • Copying files...node:internal/errors:984
    const err = new Error(message);
    ^

Error: Command failed: cp -r D:.pnpm-store\v3\tmp\dlx-33368\node_modules.pnpm\[email protected]\node_modules
create-fastjs\templates\vanilla/* D:\github\demo\fastjs-app
'cp' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

at genericNodeError (node:internal/errors:984:15)
at wrappedFn (node:internal/errors:538:14)
at ChildProcess.exithandler (node:child_process:422:12)
at ChildProcess.emit (node:events:518:28)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5)
at Process.callbackTrampoline (node:internal/async_hooks:130:17) {

code: 1,
killed: false,
signal: null,
cmd: 'cp -r D:\.pnpm-store\v3\tmp\dlx-33368\node_modules\.pnpm\[email protected]\node_modules\create
-fastjs\templates\vanilla/* D:\github\demo\fastjs-app'
}

What is the expected behavior?

正确安装

Steps to reproduce the problem

windows
cmd
pnpm create [email protected]

Link to minimal reproduction

No response

System Info

No response

Any additional comments?

No response

Confirmations

  • I'm using/tried the latest version of fastjs and the bug is still there
  • I have read the Code of Conduct
  • I have read the Issue Reporting Guidelines
  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate
  • I know that any inappropriate content may cause the maintainer to take action base on the Code of Conduct
@xiaodong2008 xiaodong2008 added Type: Bug Something isn't working Status: Pending On schedule Priority: Important 🚑 Affects a lot of users Scope: Cli and removed Status: Needs Triage labels Apr 28, 2024
@xiaodong2008 xiaodong2008 self-assigned this Apr 28, 2024
@xiaodong2008 xiaodong2008 added the Platform: Windows Only on windows label Apr 28, 2024
@xiaodong2008
Copy link
Member

Fixed in v1.0.0-beta.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Windows Only on windows Priority: Important 🚑 Affects a lot of users Scope: Cli Status: Solved Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants