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.
直接使用nvm 切换到node14版本,我使用的是v14.20.1,npm版本v6.14.17
node 14 版本对应的sass版本(改package.json)
“node-sass”: “^4.14.1”,
“sass-loader”: “^8.0.2”,
cnpm uninstall --save node-sass
cnpm uninstall --save sass-loader
cnpm install --save node-sass
cnpm install --save sass-loader
还不行就把node_modules全删了重新install
node 15版本
“node-sass”: “^5.0.0”,
“sass-loader”: “^10.1.1”
node -v 16.4.0 win11系统 64位 当前版本
“node-sass”: “^6.0.1”,
“sass-loader”: “^10.2.0”