> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# node-sass 安装失败

## yarn 安装 scss 失败

> **注**：使用 `yarn install` 命令安装依赖时报错。

### 第一步：更改镜像源

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

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

- `taobao.org`旧镜像地址已停止服务，请使用 🆕 新地址替换

```bash title="替换 node_sass 包下载地址"
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
```

- 新镜像地址：[node-sass](https://registry.npmmirror.com/binary.html?path=node-sass/) 「👈 点击访问」

:::tip 注意

- [阿里云开源镜像站](https://developer.aliyun.com/mirror/)「👈 点击访问」
- [npmmirror 镜像站](https://npmmirror.com/)「👈 点击访问」

:::
