From bebcacecc376f287ab3338bb889b26abbd1c2a0f Mon Sep 17 00:00:00 2001 From: Bruno21 Date: Sun, 29 May 2022 17:23:07 +0200 Subject: [PATCH] nodejs.sh -g deprecated. Use --location=global instead --- plugins.d/nodejs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins.d/nodejs.sh b/plugins.d/nodejs.sh index a9de899..d297294 100755 --- a/plugins.d/nodejs.sh +++ b/plugins.d/nodejs.sh @@ -236,7 +236,7 @@ echo "" echo -e "${underline}🌿 Global installed scripts:${reset}" if [ "$display_info" = true ]; then - lg=$(npm list -g --depth=0 --long | grep -v 'git$') + lg=$(npm list --location=global --depth=0 --long | grep -v 'git$') x="" q="" @@ -266,7 +266,7 @@ echo -e "$x" #Packages update echo -e "\n${underline}🌿 Search for global packages update...${reset}\n" -glong_outdated=$(npm outdated -g --long | sed '1d') +glong_outdated=$(npm outdated --location=global --long | sed '1d') if [ -n "$glong_outdated" ]; then nb_update_global=$(echo "$glong_outdated" | wc -l | xargs)