每次当我运行任何npx命令时,它都给我同样的错误。除了当我运行:npx -v
然后它会给我一个版本:9.2.0
下面是错误:
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path E:\Development
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'E:\Development'
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\Tim\AppData\Local\npm-cache\_logs\2023-01-02T20_03_57_627Z-debug-0.log
我已经更新了npm与nvm,但没有作出改变。
我想运行npx create-react-app myApp
或npx create-electron-app myApp
,但每个命令都给出相同的错误。有人能帮我摆脱这个错误吗?
1条答案
按热度按时间yeotifhr1#
我想你正面临这个问题,因为你使用了大写字母。试试这个
npx create-react-app my-app