summaryrefslogtreecommitdiff
path: root/deps/npm/lib/utils/lifecycle.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-03-14 16:39:15 -0700
committerisaacs <i@izs.me>2012-03-14 16:44:36 -0700
commitf631c1d73b83d8c10b4121fb060f5817db6811d3 (patch)
tree2f881e2a7fd9204bf58a9388d526060556fff2e3 /deps/npm/lib/utils/lifecycle.js
parentad5a108dfd5bb0a0b46c0f328adda28fa4edcd8e (diff)
downloadnode-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.js5
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" ? ";" : ":")