diff options
author | isaacs <i@izs.me> | 2011-03-26 03:10:56 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-03-26 03:10:56 +0300 |
commit | 791bf193df0a05301951ff18905bb4b0fa3be6b0 (patch) | |
tree | d918cdf1658fb3b2326b77be643e2cdeb784b016 | |
parent | 1cdfa0d07ff774a96e9d9c3e00db6e960f6f478c (diff) |
Don't install already-installed stuff unless explicitly named.
-rw-r--r-- | lib/install.js | 2 |
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, []) } |