summaryrefslogtreecommitdiff
path: root/deps/npm/lib/utils/lifecycle.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-01-09 15:21:30 -0800
committerisaacs <i@izs.me>2013-01-09 15:21:30 -0800
commitaa742ddf80f104bc4f13321668a4ede0c518cd4a (patch)
treed5edb83aca0a793d82349dacf228cc3689bbf16e /deps/npm/lib/utils/lifecycle.js
parent7a2ae4c930224e9c8e9090b6aa3437833f415452 (diff)
downloadnode-new-aa742ddf80f104bc4f13321668a4ede0c518cd4a.tar.gz
npm: Upgrade to v1.2.0
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 97adb96585..825edc9b98 100644
--- a/deps/npm/lib/utils/lifecycle.js
+++ b/deps/npm/lib/utils/lifecycle.js
@@ -49,6 +49,7 @@ function lifecycle (pkg, stage, wd, unsafe, failOk, cb) {
var env = makeEnv(pkg)
env.npm_lifecycle_event = stage
env.npm_node_execpath = env.NODE = env.NODE || process.execPath
+ env.npm_execpath = require.main.filename
// "nobody" typically doesn't have permission to write to /tmp
// even if it's never used, sh freaks out.