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
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-08-27 04:45:16 +0400
committerisaacs <i@izs.me>2010-08-27 04:45:16 +0400
commit14c3b76062185e74724f6fd29c5d31790b780c8e (patch)
tree9738b00f5ad8036fbd9c6616c38379e100068dc4
parent6f17a04669681b921f8ac45ef5a14ddfe7b75fb9 (diff)
Add some verbose logging to track down the bug reported by pyronicide in IRC.
-rw-r--r--lib/install.js1
-rw-r--r--lib/link.js6
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/install.js b/lib/install.js
index e70409ed0..04554112c 100644
--- a/lib/install.js
+++ b/lib/install.js
@@ -39,6 +39,7 @@ function install (pkglist, cb) {
install(pkglist, cb)
})
+ log.verbose(pkglist, "install pkglist")
var mustInstall = pkglist.slice(0)
// three lists: "pkglist", "next", and "reg"
diff --git a/lib/link.js b/lib/link.js
index 817c69489..f041e7c03 100644
--- a/lib/link.js
+++ b/lib/link.js
@@ -67,7 +67,9 @@ function doLink (folder, cb) { return function (er, data) {
// skip any that are installed
readInstalled(depNames, function (er, inst) {
if (er) return log.er(cb, "Couldn't read installed packages")(er)
+ log.verbose(deps, "link deps")
for (var d in inst) if (deps[d]) {
+ log.verbose(d, "dep installed")
var satis = semver.maxSatisfying(Object.keys(inst[d]), deps[d])
if (satis) delete deps[d]
}
@@ -76,9 +78,7 @@ function doLink (folder, cb) { return function (er, data) {
})
log.verbose(depsNeeded, "link install deps")
chain
- ( depsNeeded.length
- ? [ npm.commands, "install", depsNeeded.slice(0) ]
- : function (cb) { cb() }
+ ( depsNeeded.length && [ npm.commands, "install", depsNeeded.slice(0) ]
, [ symlink, folder, pkgDir ]
, [ npm.commands, "build", [data] ]
, function (er) {