npm 安装依赖报错+node-sass安装失败

1、错误信息:

Unexpected end of JSON input while parsing near '.../u5O6Oi7yAAkLjtbEtN8H'node


解决方式(清理缓存):

npm cache clean -force复制代码

从新安装:


2、node-sass安装

安装node-sass失败的时候,能够先全局安装mirror-config-china在安装node-sass便可npm

npm install -g mirror-config-china
npm install node-sass复制代码

若有问题,请联系

相关文章
相关标签/搜索