我尝试了我找到的每一个方法,但我就是不能运行create-react-app。我尝试卸载node并重新安装,使用yarn,清理缓存,使用“npm init...”创建,但没有任何效果。
Microsoft Windows [versão 10.0.19043.1889]
(c) Microsoft Corporation. Todos os direitos reservados.
C:\Program Files (x86)\Windows Resource Kits\Tools>cd C:\Users\user\meu_app
C:\Users\user\meu_app>node -v
v16.17.0
C:\Users\user\meu_app>npm -v
8.18.0
C:\Users\user\meu_app>npx create-react-app myapp
npm ERR! code ENOENT
npm ERR! syscall spawn C:\Users\user
npm ERR! path C:\Users\user\meu_app
npm ERR! errno -4058
npm ERR! enoent spawn C:\Users\user 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\user\AppData\Local\npm-cache\_logs\2022-09-02T19_06_17_314Z-debug-0.log
1条答案
按热度按时间ewm0tg9j1#
我以前从未见过这个问题。npx是随npm 5.2+发布的,所以这不应该是问题。您的问题似乎与此Can't install any NPM package, error 4058相似
请尝试以下步骤:
Thread在这里:https://github.com/npm/npm/issues/17444
如果有帮助的话告诉我否则,我会继续寻找。