输入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安装的源,使用taobao的npm

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

然后运行

npm install

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-18
  • 2021-04-11
  • 2022-12-23
  • 2021-07-26
猜你喜欢
  • 2022-12-23
  • 2022-01-03
  • 2021-11-04
  • 2021-06-13
  • 2021-07-24
相关资源
相似解决方案