项目运行npm install时报错: [email protected] postinstall: `node scripts/build.js`

项目进行 npm install时报错
在这里插入图片描述

原因找不到 [email protected]

Failed at the node-sass@4.14.1 postinstall script.

解决方法:设置node-sass 的数据源

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

在这里插入图片描述
再次执行:npm install

在这里插入图片描述
程序不再报错!!!

猜你喜欢

转载自blog.csdn.net/Matcha_ice_cream/article/details/123218845