输入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的权限错误
在npm install 后面加上 --no-bin-links即可
npm install --no-bin-links
转自:http://www.bubuko.com/infodetail-3452837.html
https://www.cnblogs.com/gentlemanwuyu/p/11369686.html