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:45 +0400
committerisaacs <i@izs.me>2010-08-27 04:45:45 +0400
commit05a6c59371f1d2ab4819adae139edaa14959d9b0 (patch)
treec0cc2a50d2bb2c2ed60bfd4e00546aa2398ea2f9
parent14c3b76062185e74724f6fd29c5d31790b780c8e (diff)
Fix a bug where dependencies marked with "*" wouldn't be auto-installed.
Reported by pyronicide in IRC.
-rw-r--r--lib/install.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/install.js b/lib/install.js
index 04554112c..ec7161668 100644
--- a/lib/install.js
+++ b/lib/install.js
@@ -86,7 +86,7 @@ function install_ (pkg, reg, seen, mustHave, pkglist, cb) {
, ver = pkg.slice(1).join("@").trim() || defTag
, range = semver.validRange(ver)
, exact = semver.valid(ver)
- , tag = !exact && !range && ver
+ , tag = !exact && !range && range !== "" && ver
log.verbose([pkg, mustHave], "must install?")
pkg = pkg.join("@")
seen[name+"@"+ver] = true