From 68f232af19e51891dfcdcdca9bd843365fddbbfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Mon, 2 Dec 2024 15:24:31 +0800 Subject: [PATCH] docs: update README to include private npm registry configuration --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 35ce7e8..c80569e 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,17 @@ node 16.x 其他版本依赖可能会有问题 +```sh + +# 修改镜像地址 -> 博云私有 npm 仓库地址 + +npm config set registry http://58.210.154.140:13011/repository/bocloud-npm/ +npm config set always-auth true +npm config set auto-install-peers=true +npm config set strict-peer-dependencies=false +npm config set shamefully-hoist=true +npm config set _auth Ym9jbG91ZDpjbXBAdjU4Nw== + # 下载依赖 pnpm install @@ -41,3 +52,4 @@ pnpm serve # 生产环境构建 pnpm build +```