当我输入 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
我已经尝试了各种方法,从设置环境到使用不同版本重新安装,但仍然出现错误
我使用以下命令解决了这个问题。
npm uninstall -g create-react-app
then
npm install -g create-react-app
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)