This commit is contained in:
28
Docs/NPM加速配置.md
Normal file
28
Docs/NPM加速配置.md
Normal file
@@ -0,0 +1,28 @@
|
||||
> 本文作者:丁辉
|
||||
|
||||
# NPM加速配置
|
||||
|
||||
- 淘宝镜像源
|
||||
|
||||
```bash
|
||||
npm config set registry https://registry.npm.taobao.org
|
||||
```
|
||||
|
||||
验证
|
||||
|
||||
```bash
|
||||
npm config get registry
|
||||
```
|
||||
|
||||
- 华为云镜像源
|
||||
|
||||
```bash
|
||||
npm config set registry https://mirrors.huaweicloud.com/repository/npm/
|
||||
```
|
||||
|
||||
验证
|
||||
|
||||
```bash
|
||||
npm config get registry
|
||||
```
|
||||
|
Reference in New Issue
Block a user