当前位置:   article > 正文

npm install出现npm ERR! Failed at the node-sass@4.14.1 postinstall script.异常

npm err! failed at the node-sass@4.14.1 postinstall script.

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.

找不到sass,查看node-sass文件,里面没有文件。

所以在npm install前设置sass源。

直接在当前目录下进行node-sass 的数据源设置
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass

安装依赖:
npm install --registry=https://registry.npm.taobao.org

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/530620
推荐阅读
相关标签
  

闽ICP备14008679号