Skip to content

Commit

Permalink
tools: ensure npm always uses the local node
Browse files Browse the repository at this point in the history
Refs: #3308
PR-URL: #3489
Reviewed-By: Rod Vagg <[email protected]>
  • Loading branch information
Fishrock123 authored and rvagg committed Oct 22, 2015
1 parent 3c3435d commit 6e78382
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/test-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export npm_config_cache="$(pwd)/npm-cache"
export npm_config_prefix="$(pwd)/npm-prefix"
export npm_config_tmp="$(pwd)/npm-tmp"

# ensure npm always uses the local node
export PATH="$(../$NODE -p 'require("path").resolve("..")'):$PATH"

# install npm devDependencies and run npm's tests
../$NODE cli.js install --ignore-scripts
../$NODE test/run.js
Expand Down

0 comments on commit 6e78382

Please sign in to comment.