Rey*_*zah 2 javascript node.js npm createjs reactjs
当我输入 npm 命令 create-react-app my-app 时,出现如下错误:
npm ERR! code ENOENT
npm ERR! syscall spawn C:\Windows\System32;
npm ERR! path C:\Users\Administrator\Documents\th-wedding\template
npm ERR! errno -4058
npm ERR! enoent spawn C:\Windows\System32; ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Local\npm-cache\_logs\2023-02-02T04_41_46_601Z-debug-0.log
Run Code Online (Sandbox Code Playgroud)
我已经尝试了各种方法,从设置环境到使用不同版本重新安装,但仍然出现错误
我使用以下命令解决了这个问题。
npm uninstall -g create-react-app
Run Code Online (Sandbox Code Playgroud)
然后
npm install -g create-react-app
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9129 次 |
| 最近记录: |