npm install安装依赖包失败

npm 版本 (6.9.0)
nodeb版本(11.13.0)
安装依赖的时候发现这个错误:
error If you’re sure you want to delete the entire cache, rerun this command with --force.

解决方案:强制清除缓存
npm cache clean --force

再运行npm install

-----对于node版本的问题,简单粗暴的办法是直接卸载原来的,再重新安装最新版本的,直截了当,暂时没遇到其他问题;当然也可以对node进行nvm版本控制。

-----可以给自己的电脑安装everyting软件,非常方便找文件;

猜你喜欢

转载自blog.csdn.net/u012994411/article/details/88954733