For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /record/tooling/node-sass.md.

node-sass 安装失败

yarn 安装 scss 失败

注:使用 yarn install 命令安装依赖时报错。

第一步:更改镜像源

修改包管理工具镜像源地址
yarn config set registry https://registry.npmmirror.com -g

第二步:配置 node-sass 的二进制包镜像地址

  • taobao.org旧镜像地址已停止服务,请使用 🆕 新地址替换
替换 node_sass 包下载地址
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
  • 新镜像地址:node-sass 「👈 点击访问」
注意