安装install的项目的报错sass npm ERR! node-sass@4.14.1 postinstall: node scripts/build.js
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! D:\Program Files\nodejs\node_cache\_logs\2023-12-25T06_55_09_846Z-debug.log
解决方案:
输入如下命令
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
重新npm install即可