Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cli.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-08-05 20:26:12 +0400
committerisaacs <i@izs.me>2010-08-05 20:26:12 +0400
commit1b6515b80a07e96ee9eca695ce9de71ba2c15b2a (patch)
treea6146593a848ab35429bc5572738a6857a509c51 /cli.js
parentdedd346a2be91e78437e0bf0b0cf25b3ad7df3b7 (diff)
Fix for earlier versions of node that didn't have proper module identity.
Rollback previous non-fix for 155 and 154. This actually fixes #155 and #154
Diffstat (limited to 'cli.js')
-rwxr-xr-xcli.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/cli.js b/cli.js
index 0e64d1aa1..41122118c 100755
--- a/cli.js
+++ b/cli.js
@@ -9,8 +9,9 @@ log("ok", "it worked if it ends with")
var fs = require("fs")
, path = require("path")
, sys = require("sys")
- , npm = require("./npm")
- , ini = require("./lib/utils/ini")
+ // kludge for earlier nodes' lack of absolute module identity
+ , npm = require(__dirname+"/npm")
+ , ini = require(__dirname+"/lib/utils/ini")
// supported commands.
, argv = process.argv.slice(2)