> For the complete documentation index, see [llms.txt](https://lizh.gitbook.io/knowledge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lizh.gitbook.io/knowledge/nodejs/00-chang-jian-wen-ti.md).

# 常见问题

### nvm安装node慢

nvm 默认从官方源进行下载，可以修改下载源。

在 nvm 安装目录下的 settings.txt 文件中添加如下镜像地址即可：

```txt
node_mirror: npm.taobao.org/mirrors/node/
npm_mirror: npm.taobao.org/mirrors/npm/
```

### 切换 npm 下载源

**方案一：** 安装时，指定镜像源。

```shell
npm install -g nrm --registry=https://registry.npmmirror.com
```

**方案二：** 修改 npm 源地址。

```shell
npm config set registry https://registry.npmmirror.com
```

**方案三：** 使用 nrm 管理 npm 源。

```shell
npm install -g nrm --registry=https://registry.npmmirror.com
nrm ls
nrm use taobao
npm config get registry
```
