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/lib
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-03-26 03:10:56 +0300
committerisaacs <i@izs.me>2011-03-26 03:10:56 +0300
commit791bf193df0a05301951ff18905bb4b0fa3be6b0 (patch)
treed918cdf1658fb3b2326b77be643e2cdeb784b016 /lib
parent1cdfa0d07ff774a96e9d9c3e00db6e960f6f478c (diff)
Don't install already-installed stuff unless explicitly named.
Diffstat (limited to 'lib')
-rw-r--r--lib/install.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/install.js b/lib/install.js
index cee479baa..6475fbfa8 100644
--- a/lib/install.js
+++ b/lib/install.js
@@ -216,7 +216,7 @@ function targetResolver (where, previously, explicit) {
}, to++)
// now we know what's been installed here manually,
// or tampered with in some way that npm doesn't want to overwrite.
- if (alreadyInstalledManually.indexOf(what) !== -1) {
+ if (alreadyInstalledManually.indexOf(what.split("@").shift()) !== -1) {
log("skipping "+what, "already installed manually in "+where)
return cb(null, [])
}