天天看点

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

一、错误信息:

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

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

解决方式(清理缓存):

npm cache clean -force复制代码
           

重新安装:

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

二、node-sass安装

安装node-sass失败的时候,可以先全局安装mirror-config-china在安装node-sass即可

npm install -g mirror-config-china
npm install node-sass
           

继续阅读