解决:npm ERR! enoent This is related to npm not being able to find a file.
·
问题:
运行npm命令时出现如下错误:
npm ERR! enoent ENOENT: no such file or directory, rename 'D:\project\WebStorm\blog\node_modules\_braces@2.3.2@braces\node_modules\extend-shallow' -> 'D:\project\WebStorm\blog\node_modules\_braces@2.3.2@braces\node_modules\extend-shallow'
npm ERR! enoent This is related to npm not being able to find a file.
解决:
-
sudo npm install -g color-name --unsafe-perm=true
-
若方法一无效,将no such file or directory,access中指明的文件路径中的node_modules删除
然后再重新npm install 安装
更多推荐
已为社区贡献2条内容
所有评论(0)