标签

Honeymoon - Thomas Ng

归档

近期文章

node-sass@4.14.1 安装失败

解决node-sass@4.14.1 安装失败

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.

此处说明存在两个问题:

  1. node版本切换为 14
  2. 需要切换镜像地址或者开启VPN代理(本次解决使用国内镜像设置) 解决:(2024年开始之前的老淘宝镜像全部失效)
 npm config set sass_binary_site=https://npmmirror.com/mirrors/node-sass

 npm i node-sass

Buy me a cup of coffee 🙂

觉得对你有帮助,就给我打赏吧,谢谢!

微信赞赏码链接,点击跳转:

node-sass@4.14.1 安装失败插图
Tags: