From 405be73f098ab214724c23672dded5e246ca7e35 Mon Sep 17 00:00:00 2001 From: Gladtbam <49943258+Gladtbam@users.noreply.github.com> Date: Mon, 6 Jun 2022 18:55:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9nmp=20CDN=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/share.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/share.sh b/shell/share.sh index 0a6d0bd6..f0577ac3 100755 --- a/shell/share.sh +++ b/shell/share.sh @@ -248,11 +248,11 @@ fix_config() { npm_install_sub() { set_proxy if [ $is_termux -eq 1 ]; then - npm install --production --no-bin-links --registry=https://registry.npm.taobao.org || npm install --production --no-bin-links + npm install --production --no-bin-links --registry=https://registry.npmmirror.com || npm install --production --no-bin-links elif ! type pnpm &>/dev/null; then - npm install --production --registry=https://registry.npm.taobao.org || npm install --production + npm install --production --registry=https://registry.npmmirror.com || npm install --production else - pnpm install --loglevel error --production --registry=https://registry.npm.taobao.org || pnpm install --production --loglevel error + pnpm install --loglevel error --production --registry=https://registry.npmmirror.com || pnpm install --production --loglevel error fi unset_proxy }