安装nextjs项目时出现错误,我无法以任何方式解决[关闭]

unhi4e5o  于 2023-05-17  发布在  其他
关注(0)|答案(1)|浏览(269)

已关闭,此问题需要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'
nbnkbykc

nbnkbykc1#

该高速缓存npm cache clean --force而不是npx clear-npx-cache,然后再次运行npx create-react-app my-app

相关问题