输入npm install 时出现 node-sass 错误

【问题描述】

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 [email protected] 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\86156\AppData\Roaming\npm-cache\_logs\2020-06-28T10_21_07_883Z-debug.log

【问题解决方案】:这个是因为 sass安装时获取源的问题,修改 sass安装的源,使用 taobao的 npm

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

  然后运行

npm install

猜你喜欢

转载自blog.csdn.net/zhengzhaoyang122/article/details/107005560