Skip to content

Commit

Permalink
use install prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaaro committed Mar 15, 2012
1 parent f8f608d commit dda23bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/compilenodejs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ function run_npm_install_global() {
package="$1"

cd $BUILD_DIR
HOME="$BUILD_DIR" $VENDORED_NODE/bin/node $VENDORED_NPM/cli.js install $package 2>&1 | indent
HOME="$BUILD_DIR"
$VENDORED_NODE/bin/node $VENDORED_NPM/cli.js install -g --prefix $BUILD_DIR $package 2>&1 | indent

if [ "${PIPESTATUS[*]}" != "0 0" ]; then
echo " ! Failed to install dependencies with npm"
Expand Down

0 comments on commit dda23bc

Please sign in to comment.