Rock笔记
~/rocknotes/articles/316.md article
// article · vue

NPM 相关问题集锦

1、npm install报错类似于npm WARN tar ENOENT: no such file or directory, open '***\node_modules\.staging\***

解决方法:

删除文件 package-lock.json,再重新执行npm install



2、npm install报错A complete log of this run can be found in:****debug.log

这种情况下一般更新npm就可以   

1)npm install npm -g   必须要全局更新

如果还是不行执行下面命令

2)npm cache clean --force


回复// 0 replies

最新回复 ↓
// 暂无回复

回复功能沿用原详情页:前往原页面参与讨论 →