安装install的项目的报错sass npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js`

发布时间 2023-11-20 11:53:46作者: 浅笑19
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.14.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\A5\AppData\Roaming\npm-cache\_logs\2021-04-02T03_16_26_869Z-debug.log

因为node-sass报错
npm ERR! node-sass@4.14.1 postinstall: node scripts/build.js

解决方案:
输入如下命令

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

重新 npm install