Skip to content

Instantly share code, notes, and snippets.

@avaforvr
Created August 31, 2020 09:58
Show Gist options
  • Save avaforvr/8a1f58b9a2e01db95887949dcef1a01e to your computer and use it in GitHub Desktop.
Save avaforvr/8a1f58b9a2e01db95887949dcef1a01e to your computer and use it in GitHub Desktop.
[nrm] #node
nrm 是一个 npm 源管理器,允许你快速地在 npm源间切换。
## 安装:
```shell
npm install -g nrm
```
## 使用
### 查看可选源(带*号即为当前使用源)
```shell
nrm ls
```
### 查看当前使用源
```shell
nrm current
```
### 切换源
```shell
nrm use <registry>
```
### 添加源
```shell
nrm add <registry> <url>
```
### 删除源
```shell
nrm del <registry>
```
### 测试源速度(即响应时间)
```shell
nrm test <registry>
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment