From f30586b1504414faf0d4b759c4053124527cd8df Mon Sep 17 00:00:00 2001 From: GraceWalk Date: Fri, 28 Oct 2022 17:37:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BE=9D=E8=B5=96=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=87=87=E7=94=A8=20taobao=20=E9=95=9C?= =?UTF-8?q?=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- km-console/README.md | 2 +- km-console/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/km-console/README.md b/km-console/README.md index 58910116..6a426f3e 100644 --- a/km-console/README.md +++ b/km-console/README.md @@ -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 文件)。 ## 三、启动项目(可选,打包构建请直接看步骤三) diff --git a/km-console/package.json b/km-console/package.json index 5dc9273e..d02345af 100644 --- a/km-console/package.json +++ b/km-console/package.json @@ -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",