Permalink
Browse files

Don't install already-installed stuff unless explicitly named.

  • Loading branch information...
isaacs committed Mar 26, 2011
1 parent 1cdfa0d commit 791bf193df0a05301951ff18905bb4b0fa3be6b0
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/install.js
View
@@ -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, [])
}

0 comments on commit 791bf19

Please sign in to comment.