解决: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 安装
新一代开源开发者平台 GitCode,通过集成代码托管服务、代码仓库以及可信赖的开源组件库,让开发者可以在云端进行代码托管和开发。旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。
更多推荐



所有评论(0)