Skip to content

Commit

Permalink
npm install of git dependency always update
Browse files Browse the repository at this point in the history
This addresses issue npm#1727. The change ensures that
git dependencies will always update by checking for
_resolved.
  • Loading branch information
luk- committed Apr 15, 2013
1 parent 40eaf45 commit 8388f0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/install.js
Expand Up @@ -672,6 +672,7 @@ function targetResolver (where, context, deps) {
data &&
!context.explicit &&
context.family[data.name] === data.version &&
!data._resolved &&
!npm.config.get("force")) {
log.info("already installed", data.name + "@" + data.version)
return cb(null, [])
Expand Down

0 comments on commit 8388f0c

Please sign in to comment.