Browse Source

tools: ensure npm always uses the local node

Refs: https://github.com/nodejs/node/pull/3308
PR-URL: https://github.com/nodejs/node/pull/3489
Reviewed-By: Rod Vagg <rod@vagg.org>
process-exit-stdio-flushing
Jeremiah Senkpiel 9 years ago
parent
commit
9b8886446d
  1. 3
      tools/test-npm.sh

3
tools/test-npm.sh

@ -28,6 +28,9 @@ export npm_config_cache="$(pwd)/npm-cache"
export npm_config_prefix="$(pwd)/npm-prefix" export npm_config_prefix="$(pwd)/npm-prefix"
export npm_config_tmp="$(pwd)/npm-tmp" 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 # install npm devDependencies and run npm's tests
../$NODE cli.js install --ignore-scripts ../$NODE cli.js install --ignore-scripts
../$NODE test/run.js ../$NODE test/run.js

Loading…
Cancel
Save