fix: 依赖安装默认采用 taobao 镜像

This commit is contained in:
GraceWalk
2022-10-28 17:37:13 +08:00
committed by EricZeng
parent 37037c19f0
commit f30586b150
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ npm install -g lerna
npm run i
```
我们默认保留了 `package-lock.json` 文件,以防止可能的依赖包自动升级导致的问题。依赖默认会通过 taobao 镜像 `https://registry.npmmirror.com/` 服务下载。
我们默认保留了 `package-lock.json` 文件,以防止可能的依赖包自动升级导致的问题。依赖默认会通过 taobao 镜像 `https://registry.npmmirror.com/` 服务下载(如需修改下载源,请见当前目录下 package.json 文件)
## 三、启动项目(可选,打包构建请直接看步骤三)

View File

@@ -22,7 +22,7 @@
"prettier": "2.3.2"
},
"scripts": {
"i": "npm install && lerna bootstrap",
"i": "npm config set registry https://registry.npmmirror.com/ && npm install && lerna bootstrap",
"clean": "rm -rf node_modules package-lock.json packages/*/node_modules packages/*/package-lock.json",
"start": "lerna run start",
"build": "lerna run build",