diff options
author | isaacs <i@izs.me> | 2012-03-14 16:39:15 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-03-14 16:44:36 -0700 |
commit | f631c1d73b83d8c10b4121fb060f5817db6811d3 (patch) | |
tree | 2f881e2a7fd9204bf58a9388d526060556fff2e3 /deps/npm/lib/utils/lifecycle.js | |
parent | ad5a108dfd5bb0a0b46c0f328adda28fa4edcd8e (diff) | |
download | node-new-f631c1d73b83d8c10b4121fb060f5817db6811d3.tar.gz |
Update npm to 1.1.9
Diffstat (limited to 'deps/npm/lib/utils/lifecycle.js')
-rw-r--r-- | deps/npm/lib/utils/lifecycle.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/npm/lib/utils/lifecycle.js b/deps/npm/lib/utils/lifecycle.js index 085dcc88a2..92b086e699 100644 --- a/deps/npm/lib/utils/lifecycle.js +++ b/deps/npm/lib/utils/lifecycle.js @@ -73,6 +73,11 @@ function lifecycle_ (pkg, stage, wd, env, unsafe, failOk, cb) { acc = path.join(acc, "node_modules", pp) }) pathArr.unshift(path.join(acc, "node_modules", ".bin")) + + // we also unshift the bundled node-gyp-bin folder so that + // the bundled one will be used for installing things. + pathArr.unshift(path.join(__dirname, "..", "..", "bin", "node-gyp-bin")) + if (env[PATH]) pathArr.push(env[PATH]) env[PATH] = pathArr.join(process.platform === "win32" ? ";" : ":") |