From 45e02a55c302aeda65072f04e0123776d1779881 Mon Sep 17 00:00:00 2001 From: whyour Date: Sat, 16 Jul 2022 12:25:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9npm=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .npmrc | 2 +- shell/share.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.npmrc b/.npmrc index edcdab7a..dfccb54b 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,2 @@ -sentrycli_cdnurl=https://cdn.npm.taobao.org/dist/sentry-cli +sentrycli_cdnurl=https://npmmirror.com/mirrors/sentry-cli/ strict-peer-dependencies=false \ No newline at end of file diff --git a/shell/share.sh b/shell/share.sh index eedcec18..08f57eb6 100755 --- a/shell/share.sh +++ b/shell/share.sh @@ -245,11 +245,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 }