diff options
-rwxr-xr-x | npm.js | 2 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | scripts/install-docs.js | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -2,6 +2,7 @@ if (!process.EventEmitter.prototype.on) { process.EventEmitter.prototype.on = process.EventEmitter.prototype.addListener } +var path = require("path") if (!process.execPath) { process.execPath = path.join(process.installPrefix, "bin", "node") } @@ -12,7 +13,6 @@ var npm = exports , ini = require("./lib/utils/ini") , log = require("./lib/utils/log") , fs = require("fs") - , path = require("path") npm.commands = {} npm.SHOULD_EXIT = true diff --git a/package.json b/package.json index 6d8d82378..41d37ab02 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ , "directories" : { "lib" : "./lib/" } , "main" : "./npm" , "bin" : { "npm" : "./cli.js" } -, "engines" : { "node" : ">=0.1.100" } +, "engines" : { "node" : ">=0.1.99" } , "scripts" : { "activate" : "node scripts/install-docs.js" , "deactivate" : "node scripts/install-docs.js" diff --git a/scripts/install-docs.js b/scripts/install-docs.js index 6b9e82c40..76b83ad7c 100644 --- a/scripts/install-docs.js +++ b/scripts/install-docs.js @@ -4,6 +4,7 @@ // reflect the current command. var event = process.env.npm_lifecycle_event + , npm = require("../npm") , exec = require("../lib/utils/exec") , log = require("../lib/utils/log") , fs = require("fs") @@ -12,7 +13,6 @@ var event = process.env.npm_lifecycle_event , mkdir = require("../lib/utils/mkdir-p") , manTarget = path.join(process.installPrefix, "share/man/man1") , exec = require("../lib/utils/exec") - , npm = require("../../npm") log(event, "docs") |