aboutsummaryrefslogtreecommitdiff
path: root/src/node/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/node/install.sh')
-rwxr-xr-xsrc/node/install.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node/install.sh b/src/node/install.sh
index 8091094..9a696ca 100755
--- a/src/node/install.sh
+++ b/src/node/install.sh
@@ -228,6 +228,9 @@ if type pnpm > /dev/null 2>&1; then
echo "pnpm already installed."
else
if type npm > /dev/null 2>&1; then
+ [ ! -z "$http_proxy" ] && npm set proxy="$http_proxy"
+ [ ! -z "$https_proxy" ] && npm set https-proxy="$https_proxy"
+ [ ! -z "$no_proxy" ] && npm set noproxy="$no_proxy"
npm install -g pnpm
else
echo "Skip installing pnpm because npm is missing"