-
-
Save avaforvr/8a1f58b9a2e01db95887949dcef1a01e to your computer and use it in GitHub Desktop.
[nrm] #node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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