npm ERR! Failed at the node-sass@4.14.1 postinstall script
风一样的六六哥风一样的六六哥 -问题
开发个老项目,npm i
后出现
npm ERR! Failed at the node-sass@4.14.1 postinstall script
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.
回头开发老项目,遇到这个问题N次了!一直没有记录,这次记录下:
问题解决切了半天node版本,查了半天后,发现解决方案:
node版本<=14
当前目录下对node-sass
进行数据源设置
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
问题解决~~~
如果解决了让你正在挠头的问题,拜托点个赞啦!
特别申明:本文内容来源网络,版权归原作者所有,如有侵权请立即与我们联系(cy198701067573@163.com),我们将及时处理。
上一篇: 定时(长)关机 - tcc