Browse files

removed superfluous and erroneous node-gyp command replacement

  • Loading branch information...
1 parent 5107b57 commit 3595c3dc6f6bc71ef8479ae51dc5a26c4f3c2f22 @einaros committed Jul 23, 2012
Showing with 0 additions and 8 deletions.
  1. +0 −8 lib/utils/lifecycle.js
View
8 lib/utils/lifecycle.js
@@ -86,14 +86,6 @@ function lifecycle_ (pkg, stage, wd, env, unsafe, failOk, cb) {
if (packageLifecycle) {
// define this here so it's available to all scripts.
env.npm_lifecycle_script = pkg.scripts[stage]
- // if the command is "node-gyp <args>", then call ours instead.
- try {
- var ourGyp = require.resolve("node-gyp/bin/node-gyp.js")
- } catch (er) {
- return cb(new Error("No gyp installed with npm"))
- }
- var gyp = path.execPath + " " + JSON.stringify(ourGyp)
- pkg.scripts[stage] = pkg.scripts[stage].replace(/^node-gyp( |$)/, gyp)
}
if (failOk) {

0 comments on commit 3595c3d

Please sign in to comment.