From 9a9ae9782c0ce8c5cf7e55a439112375c8f80ddf Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 7 Nov 2021 12:51:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9pnpm=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E6=BA=90?= 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 ecf28eb5..01bdd38a 100755 --- a/shell/share.sh +++ b/shell/share.sh @@ -212,11 +212,11 @@ fix_config() { npm_install_sub() { if [[ $is_termux -eq 1 ]]; then - npm install --production --no-save --no-bin-links --registry=https://registry.npm.taobao.org || npm install --production --no-bin-links --no-save + npm install --production --no-bin-links --registry=https://registry.npm.taobao.org || npm install --production --no-bin-links elif ! type pnpm &>/dev/null; then - npm install --production --no-save --registry=https://registry.npm.taobao.org || npm install --production --no-save + npm install --production --registry=https://registry.npm.taobao.org || npm install --production else - pnpm install --prod + pnpm install --production --registry=https://registry.npm.taobao.org || pnpm install --production fi }