npm install常见问题

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

  1. 问题1:
error [email protected] postinstall: node scripts/build.js

解决方法:

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

2.问题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

猜你喜欢

转载自blog.csdn.net/whirlwind526/article/details/130493753
今日推荐