Permalink
Browse files

Support npm_debug env in install script

  • Loading branch information...
1 parent c792bc3 commit 94df8f36b032110fb8ee9bb419f0556d0b795c1d @isaacs isaacs committed Jul 27, 2011
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`

0 comments on commit 94df8f3

Please sign in to comment.