Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Support npm_debug env in install script

  • Loading branch information...
commit 94df8f36b032110fb8ee9bb419f0556d0b795c1d 1 parent c792bc3
@isaacs isaacs authored
Showing with 6 additions and 3 deletions.
  1. +1 −1  Makefile
  2. +5 −2 scripts/install.sh
View
2  Makefile
@@ -32,7 +32,7 @@ clean: uninstall
node cli.js cache clean
uninstall: submodules
- node cli.js rm npm -g -f --loglevel error
+ node cli.js rm npm -g -f
man: man1
View
7 scripts/install.sh
@@ -12,9 +12,12 @@ if [ "x$0" = "xsh" ]; then
exit $ret
fi
-if ! [ "x$NPM_DEBUG" = "x" ]; then
- set +x
+npm_config_loglevel="error"
+if ! [ "x$npm_debug" = "x" ]; then
+ set -x
+ npm_config_loglevel="verbose"
fi
+export npm_config_loglevel
# make sure that node exists
node=`which node 2>&1`
Please sign in to comment.
Something went wrong with that request. Please try again.