Make certain to set npm proxy variables.
Showing
1 changed file
with
5 additions
and
0 deletions
... | @@ -17,6 +17,11 @@ find "$node_home" \ | ... | @@ -17,6 +17,11 @@ find "$node_home" \ |
17 | '(' -not -group node -exec chgrp node '{}' + ')' -o \ | 17 | '(' -not -group node -exec chgrp node '{}' + ')' -o \ |
18 | -true | 18 | -true |
19 | 19 | ||
20 | npm -g config set http_proxy "$http_proxy" | ||
21 | npm -g config set https_proxy "$http_proxy" | ||
22 | sudo -u node npm config set http_proxy "$http_proxy" | ||
23 | sudo -u node npm config set https_proxy "$http_proxy" | ||
24 | |||
20 | if [[ -e package.json ]]; then | 25 | if [[ -e package.json ]]; then |
21 | sudo -u node npm install | 26 | sudo -u node npm install |
22 | fi | 27 | fi | ... | ... |
-
Please register or sign in to post a comment