Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed superfluous and erroneous node-gyp command replacement

  • Loading branch information...
commit 3595c3dc6f6bc71ef8479ae51dc5a26c4f3c2f22 1 parent 5107b57
@einaros authored
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.