码迷,mamicode.com
首页 > Web开发 > 详细

输入npm install 报错npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.13.1 postinstall: `node scripts/build.js`

时间:2020-03-08 20:19:43      阅读:295      评论:0      收藏:0      [点我收藏+]

标签:div   mirrors   nbsp   err   addition   输入   HERE   pre   output   

输入npm install 

报以下错误

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

  

这个是因为sass安装时获取源的问题,修改sass安装的源

npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass

然后运行

npm install

  

输入npm install 报错npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.13.1 postinstall: `node scripts/build.js`

标签:div   mirrors   nbsp   err   addition   输入   HERE   pre   output   

原文地址:https://www.cnblogs.com/pxblog/p/12444050.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!