npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@xxxx postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@xxx postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
在升级完成后,删除node_modules模块重新安装依赖,结果发现安装不了node-sass了
在网上一大堆说node 版本与node-sass兼容不匹配的解决办法,试了发现没啥用,一样用不了
真正的问题就是国外镜像下载不了node-sass,得使用国内的镜像进行下载,
只需要两步:设置镜像,安装就完事了
// 对应的包管理工具设置node-sass 的镜像源,这里以npm为例
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
// 重新安装node-sass包
npm install node-sass