Permalink
Browse files

s/path.resolve/require.resolve/

  • Loading branch information...
1 parent e6c3e19 commit 2fa94efc1d0ed8a086f77f28f6b8d37c2f323635 @isaacs isaacs committed May 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/utils/lifecycle.js
View
@@ -88,7 +88,7 @@ function lifecycle_ (pkg, stage, wd, env, unsafe, failOk, cb) {
env.npm_lifecycle_script = pkg.scripts[stage]
// if the command is "node-gyp <args>", then call ours instead.
try {
- var ourGyp = path.resolve("node-gyp/bin/node-gyp.js")
+ var ourGyp = require.resolve("node-gyp/bin/node-gyp.js")
} catch (er) {
return cb(new Error("No gyp installed with npm"))
}

0 comments on commit 2fa94ef

Please sign in to comment.