Permalink
Browse files

Don't use existing pkg if explicit

  • Loading branch information...
1 parent 449c522 commit e2f294632e17ab858ec9f150a260a78904e301b3 @isaacs isaacs committed Mar 13, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/install.js
View
@@ -521,6 +521,7 @@ function targetResolver (where, context, deps) {
if (!er &&
data &&
+ !context.explicit &&
context.family[data.name] === data.version &&
!npm.config.get("force")) {
log.info(data.name + "@" + data.version, "already installed")

0 comments on commit e2f2946

Please sign in to comment.