npm install报错node-sass@4.14.1 postinstall: node scripts/build.js

  1. 问题1:

error node-sass@4.13.1 postinstall: node scripts/build.js

解决方法:

npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
npm install
  1. 问题2:

This usually happens because your environment has changed since running npm install.
Run npm rebuild node-sass to download the binding for your current environment.

解决方法:

npm install -g cnpm --registry=https://registry.npm.taobao.org cnpm
install node-sass --save

转发链接:https://blog.csdn.net/qq_29384639/article/details/104199422

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐