npm报错及解决方案
文章目录
一、 npm install时提示:npm ERR! Unexpected end of JSON input while parsing near '... PGP SIGNATURE-----\r'
解决方案:
npm cache clean --force // 如果出现提示npm WARN using --force I sure hope you know what you are doing 则表示清除成功
npm install // 再次执行npn install即可
二、npm install时发现一直卡在fetchMetadata: sill install loadAllDepsIntoIdealTree
原因:安装过慢导致的,可耐心等待或者安装淘宝镜像
解决方案:
npm install node-sass \--registry=http://registry.npm.taobao.org // 从淘宝镜像安装
三、
补充更新
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论