felixrieseberg/npm-windows-upgrade

Non-exact versions cause an installation error

akdor1154 opened this issue · 0 comments

Say I want to install the latest npm with major version 6:
npm-windows-upgrade -v 6
Installation sort of succeeds, but

  • The first method seems to fail, and it falls back to "fallback method"
  • The fallback method shows the message "You wanted to install npm 6, but the installed version is 6.4.1.".
  • npm 6.4.1 appears to be installed correctly after all the whingeing.

Same results with npm-windows-upgrade -v ^6.

npm-windows-upgrade -v latest does seem to work, but does not give me the functionality I want (locking major version).

Windows Server 2016, nodejs-lts 8.11.4 installed with chocolatey. npm-windows-upgrade running as Administrator.