From 37190452ca77e4a16105e8ba28768207dc2eb61a Mon Sep 17 00:00:00 2001 From: Konano Date: Wed, 16 Oct 2024 23:24:38 +0800 Subject: [PATCH] update nvm --- configure_user.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure_user.sh b/configure_user.sh index 9cdbe3b..aba9f41 100755 --- a/configure_user.sh +++ b/configure_user.sh @@ -79,7 +79,9 @@ configure_nvm() { nvm install lts/iron nvm alias default lts/iron nvm install-latest-npm - echo "registry=https://registry.npmmirror.com" > ~/.npmrc + if [ $abroad -ne 1 ]; then + echo "registry=https://registry.npmmirror.com" > ~/.npmrc + fi fi }