已关闭,此问题需要details or clarity。目前不接受答复。
**想改善这个问题吗?**通过editing this post添加详细信息并澄清问题。
4天前关闭。
Improve this question
我尝试安装next,我甚至更新了npm版本,以便能够使用新的nextjs创建react项目,但它总是给出相同的错误。
Aborting installation.
Unexpected error. Please report it as a bug:
Error: spawn UNKNOWN
at ChildProcess.spawn (node:internal/child_process:413:11)
at Object.spawn (node:child_process:713:9)
at spawn (C:\Users\Bruno Adler\AppData\Local\npm-cache\_npx\cc2145a2fe1558fa\node_modules\create-next-app\dist\index.js:44:7594)
at C:\Users\Bruno Adler\AppData\Local\npm-cache\_npx\cc2145a2fe1558fa\node_modules\create-next-app\dist\index.js:325:18946
at new Promise (<anonymous>)
at install (C:\Users\Bruno Adler\AppData\Local\npm-cache\_npx\cc2145a2fe1558fa\node_modules\create-next-app\dist\index.js:325:18439)
at installTemplate (C:\Users\Bruno Adler\AppData\Local\npm-cache\_npx\cc2145a2fe1558fa\node_modules\create-next-app\dist\index.js:325:23294)
at async createApp (C:\Users\Bruno Adler\AppData\Local\npm-cache\_npx\cc2145a2fe1558fa\node_modules\create-next-app\dist\index.js:325:26077)
at async run (C:\Users\Bruno Adler\AppData\Local\npm-cache\_npx\cc2145a2fe1558fa\node_modules\create-next-app\dist\index.js:325:34922) {
errno: -4094,
code: 'UNKNOWN',
syscall: 'spawn'
1条答案
按热度按时间nbnkbykc1#
该高速缓存
npm cache clean --force
而不是npx clear-npx-cache
,然后再次运行npx create-react-app my-app