Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
feat(migrate): don't reinstall if same version
Browse files Browse the repository at this point in the history
NVM still reinstall package from even if no new node version has been
installed
  • Loading branch information
Clément PREVOT committed Oct 18, 2016
1 parent b4d9c3b commit 53d942f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/switcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ function nvmCommand (maxSatisfyVersion, currentVersion) {
var cmd = ''
cmd += 'nvm install '
cmd += maxSatisfyVersion
cmd += ' --reinstall-packages-from='
cmd += currentVersion
if (currentVersion !== maxSatisfyVersion) {
cmd += ' --reinstall-packages-from='
cmd += currentVersion
}
return cmd
}

Expand Down

0 comments on commit 53d942f

Please sign in to comment.