【vue】node-sass报错

【vue】node-sass报错,第1张

报错

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] 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.

[email protected] postinstall: `node scripts/build.js`

解决方法

在项目文件夹下进行

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

然后执行run即可

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/941336.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-17
下一篇 2022-05-17

发表评论

登录后才能评论

评论列表(0条)

保存