Permalink
Browse files

looks like npm root is all over the place

  • Loading branch information...
1 parent 8041489 commit 07843d331828fb736f1ed3e438a7d083e07b8240 @olegp committed Sep 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/common-node
View
2 bin/common-node
@@ -1,6 +1,6 @@
#!/bin/bash
if [ ! -n "$NODE_PATH" ]; then
- NODE_PATH="/usr/local/lib/node_modules"
+ NODE_PATH="$(npm root -g)"
fi
COMMON_PATH="$NODE_PATH/common-node/lib/"
export NODE_PATH="$NODE_PATH:$COMMON_PATH"

0 comments on commit 07843d3

Please sign in to comment.