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

[Bug] Run "npx create-umi@latest" command failed #10754

Closed
chenp1204 opened this issue Mar 15, 2023 · 6 comments
Closed

[Bug] Run "npx create-umi@latest" command failed #10754

chenp1204 opened this issue Mar 15, 2023 · 6 comments

Comments

@chenp1204
Copy link

chenp1204 commented Mar 15, 2023

When i run "npx create-umi@latest" command, it failed. this is the error message:

didi@didideMacBook-Pro Workspace % npx create-umi@latest
npx: installed 40 in 20.545s
Cannot find module 'cross-spawn'
Require stack:

  • /Users/chenpeng/.npm/_npx/28937/lib/node_modules/create-umi/node_modules/@umijs/utils/dist/getFileGitIno.js
  • /Users/chenpeng/.npm/_npx/28937/lib/node_modules/create-umi/node_modules/@umijs/utils/dist/index.js
  • /Users/chenpeng/.npm/_npx/28937/lib/node_modules/create-umi/dist/cli.js
  • /Users/chenpeng/.npm/_npx/28937/lib/node_modules/create-umi/bin/create-umi.js

When i run "npm i -g cross-spawn" first, create-umi still not work, please give me a help.

Context

  • Umi Version: latest
  • Node Version: v14.16.0
  • Platform: macos 12.6.2

image

How To Reproduce

Steps to reproduce the behavior:

  1. Open mac terminal window
  2. input command "npx create-umi@latest", press enter
  3. Wait a minute, execute the command failed
@github-actions
Copy link

由于缺乏足够的信息,我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 15, 2023
@qingfengmy
Copy link

我也遇到了这个问题

@chenp1204
Copy link
Author

我也遇到了这个问题

关键是起步的时候就出问题 并不是使用中出现的问题 我只能提供这些信息呀~

@qingfengmy
Copy link

#10753

我看这个是相关修复,可能要等他们修复了

@yangxin9527
Copy link

pnpm dlx create-umi@4.0.57 

指定版本 就能正常使用了

@fz6m
Copy link
Member

fz6m commented Mar 15, 2023

感谢反馈,在最新版本 4.0.59 中已修复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants