summaryrefslogtreecommitdiff
path: root/deps/npm/lib/utils/lifecycle.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-11-23 12:51:23 -0800
committerisaacs <i@izs.me>2012-11-23 12:51:23 -0800
commitdb008f7cce0ef21c0f5253b3c3ab91e8ae0db85a (patch)
tree025b81881453ad92cfb568772a65781155f9fd94 /deps/npm/lib/utils/lifecycle.js
parentbb867c0fa6c245e95009f18742997b4cf372d6e3 (diff)
downloadnode-new-db008f7cce0ef21c0f5253b3c3ab91e8ae0db85a.tar.gz
npm: Upgrade to 1.1.66
Diffstat (limited to 'deps/npm/lib/utils/lifecycle.js')
-rw-r--r--deps/npm/lib/utils/lifecycle.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/deps/npm/lib/utils/lifecycle.js b/deps/npm/lib/utils/lifecycle.js
index eae3c3e682..97adb96585 100644
--- a/deps/npm/lib/utils/lifecycle.js
+++ b/deps/npm/lib/utils/lifecycle.js
@@ -48,6 +48,7 @@ function lifecycle (pkg, stage, wd, unsafe, failOk, cb) {
// set the env variables, then run scripts as a child process.
var env = makeEnv(pkg)
env.npm_lifecycle_event = stage
+ env.npm_node_execpath = env.NODE = env.NODE || process.execPath
// "nobody" typically doesn't have permission to write to /tmp
// even if it's never used, sh freaks out.