Permalink
Browse files

Fixing bugs in 0.1.99, and enable support for it

  • Loading branch information...
1 parent d464e32 commit 314e8cef46d141a5ffa281a024dcec7ac3c55689 @isaacs isaacs committed Jul 6, 2010
Showing with 3 additions and 3 deletions.
  1. +1 −1 npm.js
  2. +1 −1 package.json
  3. +1 −1 scripts/install-docs.js
View
2 npm.js
@@ -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
View
2 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"
View
2 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")

0 comments on commit 314e8ce

Please sign in to comment.