Skip to content

Commit f30586b

Browse files
GraceWalkZQKC
authored andcommitted
fix: 依赖安装默认采用 taobao 镜像
1 parent 37037c1 commit f30586b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

km-console/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ npm install -g lerna
2424
npm run i
2525
```
2626

27-
我们默认保留了 `package-lock.json` 文件,以防止可能的依赖包自动升级导致的问题。依赖默认会通过 taobao 镜像 `https://registry.npmmirror.com/` 服务下载。
27+
我们默认保留了 `package-lock.json` 文件,以防止可能的依赖包自动升级导致的问题。依赖默认会通过 taobao 镜像 `https://registry.npmmirror.com/` 服务下载(如需修改下载源,请见当前目录下 package.json 文件)
2828

2929
## 三、启动项目(可选,打包构建请直接看步骤三)
3030

km-console/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"prettier": "2.3.2"
2323
},
2424
"scripts": {
25-
"i": "npm install && lerna bootstrap",
25+
"i": "npm config set registry https://registry.npmmirror.com/ && npm install && lerna bootstrap",
2626
"clean": "rm -rf node_modules package-lock.json packages/*/node_modules packages/*/package-lock.json",
2727
"start": "lerna run start",
2828
"build": "lerna run build",

0 commit comments

Comments
 (0)