From 574534f8c15ebfefcc0db85b79fae26a8772df28 Mon Sep 17 00:00:00 2001 From: Eric-Guo Date: Fri, 11 Jun 2021 16:27:12 +0800 Subject: [PATCH] Fix npm version 7.17.0 will give errors. --- plugins/available/proxy.plugin.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/available/proxy.plugin.bash b/plugins/available/proxy.plugin.bash index f2458e3f..568fb2c3 100644 --- a/plugins/available/proxy.plugin.bash +++ b/plugins/available/proxy.plugin.bash @@ -133,7 +133,7 @@ npm-disable-proxy () if $(command -v npm &> /dev/null) ; then npm config delete proxy npm config delete https-proxy - npm config delete noproxy + npm config delete no_proxy echo "Disabled npm proxy settings" fi } @@ -150,7 +150,7 @@ npm-enable-proxy () if $(command -v npm &> /dev/null) ; then npm config set proxy $my_http_proxy npm config set https-proxy $my_https_proxy - npm config set noproxy $my_no_proxy + npm config set no_proxy $my_no_proxy echo "Enabled npm proxy settings" fi }