npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js`

我们两清 提交于 2020-08-09 18:02:46

今天进行npm install 出现以下错误:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.14.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\xxx\AppData\Roaming\npm-cache\_logs\2020-05-14T08_03_32_089Z-debug.log

出现原因:估计是家里网络不好下载安装不了,可以使用cnpm(npm淘宝镜像)安装或者手工设置该插件仓库地址

方法1

cnpm install

方法2

  • npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
  • npm i
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!