项目npm install报错gyp info it worked if it ends with ok
node_modules\node-sass: Command failed.Exit code: 1Command: node scripts/build.js
此问题原因之一:node版本和node-sass的版本不一致
我的node.js版本是16,而项目的node-sass是^4,所以此处我升级了我项目的版本
npm install node-sass@latest
之后npm install成功