diff options
author | isaacs <i@izs.me> | 2010-07-07 00:48:50 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-07-07 00:48:50 +0400 |
commit | 314e8cef46d141a5ffa281a024dcec7ac3c55689 (patch) | |
tree | 7b776582f3395d37a46a17a8a3a5056a38caa0dc | |
parent | d464e321fcdaddd507477787b0ac3df921091ba2 (diff) |
Fixing bugs in 0.1.99, and enable support for itv0.1.19
-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") |