From cefbd6d1e9a259d4e071497c7108066ca0561431 Mon Sep 17 00:00:00 2001 From: Bruno21 Date: Fri, 15 Jul 2022 13:02:38 +0200 Subject: [PATCH] global option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit change -g by —location=global --- plugins.d/nodejs.sh | 10 +++++----- plugins.d/pip.sh | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins.d/nodejs.sh b/plugins.d/nodejs.sh index d297294..e79f66e 100755 --- a/plugins.d/nodejs.sh +++ b/plugins.d/nodejs.sh @@ -258,7 +258,7 @@ if [ "$display_info" = true ]; then fi done <<< "$lg" else - npm list -g --depth=0 + npm list --location=global --depth=0 fi echo -e "$x" @@ -296,10 +296,10 @@ if [ -n "$glong_outdated" ]; then # /test if [ "$no_distract" = false ]; then - echo "$outdated" | xargs -p -n 1 npm -g install + echo "$outdated" | xargs -p -n 1 npm --location=global install echo "" else - echo "$outdated" | xargs -n 1 npm -g install + echo "$outdated" | xargs -n 1 npm --location=global install echo "" fi @@ -353,7 +353,7 @@ if [ "$doctor" = true ]; then echo -e "\n${bold}Updating node to v$new_node...${reset}" nvm install $new_node echo -e "\n${bold}Updating npm...${reset}" - npm -g install npm + npm --location=global install npm # nvm use $new_node echo -e "\n${bold}Reinstall packages from $old_node...${reset}" @@ -369,7 +369,7 @@ if [ "$doctor" = true ]; then if [ "$new_npm" != "$old_npm" ]; then echo -e "${underline}Udpate available for npm.${reset} You should run:" - echo -e " - ${bold}nnpm -g install npm${reset}" + echo -e " - ${bold}npm --location=global install npm${reset}" fi fi diff --git a/plugins.d/pip.sh b/plugins.d/pip.sh index 9d88e2b..0054ecd 100755 --- a/plugins.d/pip.sh +++ b/plugins.d/pip.sh @@ -33,7 +33,7 @@ user="" # Add module to the do_not_update array for prevent to update. #declare -a do_not_update=() #declare -a do_not_update=("parso" "asgiref") -declare -a do_not_update=("starlette") +declare -a do_not_update=("charset-normalizer") # #########################################