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複製代碼

若有問題,請聯繫

相關文章
相關標籤/搜索