node-sass 安装失败 Failed at the nod
2021-08-04 本文已影响0人
菲儿_cdd4
image.jpeg
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.9.2 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.9.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
解决方法:
1.先把项目里的node_modules删除
2.执行以下命令
npm config set registry [https://registry.npm.taobao.org](https://registry.npm.taobao.org)
3.再执行下面的命令
npm install