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>2012-03-01 20:29:47 +0400
committerisaacs <i@izs.me>2012-03-01 20:29:47 +0400
commita27de64071231f74bcd27eb7b69f3492c7e830c9 (patch)
treed771d16567a6593913a2c015d9eec5ee27b9b8a0
parentb708c1e5f9fd9be7f0daa6efe92461d5961c3215 (diff)
fix overly agressive re-use of installed pkgs
-rw-r--r--lib/install.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/install.js b/lib/install.js
index c9cb00c4f..19d03d5a6 100644
--- a/lib/install.js
+++ b/lib/install.js
@@ -494,12 +494,7 @@ function targetResolver (where, context, deps) {
if (context.family[what]) {
if (wrap && wrap[what].version == context.family[what]) {
- log.verbose("using existing "+what+" (matches shrinkwrap)")
- return cb(null, [])
- }
-
- if (!wrap && semver.satisfies(context.family[what], deps[what] || "")) {
- log.verbose("using existing "+what+" (no shrinkwrap)")
+ log.verbose(what, "using existing (matches shrinkwrap)")
return cb(null, [])
}
}