Permalink
Browse files

Expose node's execPath to scripts

  • Loading branch information...
1 parent fc4dc8f commit 9c63b765a6d125324cf27ae01785e0d13ec62b9f @isaacs isaacs committed Nov 8, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/utils/lifecycle.js
View
@@ -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.

0 comments on commit 9c63b76

Please sign in to comment.