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

node 20.13.1 执行pro create myapp 报错 #11233

Open
linyufei123 opened this issue May 16, 2024 · 1 comment
Open

node 20.13.1 执行pro create myapp 报错 #11233

linyufei123 opened this issue May 16, 2024 · 1 comment

Comments

@linyufei123
Copy link

node:internal/modules/cjs/loader:1148
throw err;
^

Error: Cannot find module 'mkdirp'
Require stack:

  • /usr/local/lib/node_modules/@ant-design/pro-cli/src/create/index.js
  • /usr/local/lib/node_modules/@ant-design/pro-cli/cli.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
    at Module._load (node:internal/modules/cjs/loader:986:27)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18)
    at Object. (/usr/local/lib/node_modules/@ant-design/pro-cli/src/create/index.js:4:16)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at Module.require (node:internal/modules/cjs/loader:1233:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/usr/local/lib/node_modules/@ant-design/pro-cli/src/create/index.js',
    '/usr/local/lib/node_modules/@ant-design/pro-cli/cli.js'
    ]
    }

Node.js v20.13.1

@RosiWang
Copy link

试试 npx pro create myapp 我开始也报错(错误提示不太一样) 用这个命令就好了

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

2 participants