3 ms·
`nvm install v4.0.0` and you're ready to go.
by cornedor 11y ago
`nvm install v4.0.0` and you're ready to go.
- ausjke 11y agonvm install 4.0 works, do we really need the "v"?
- qubyte 11y agoSince it's the first and only release so far in 4.x.y, I got away with `nvm install 4`. ;)
- srn_ 11y agoUsing `stable` is also another way. > nvm install stable v4.0.0 is already installed. Now using node v4.0.0 (npm v2.14.2)
- ljharb 11y agonvm maintainer here: this is true - but please use `node`, since the concept of "stable" and "unstable" has died with the advent of node v4.0 using semver. All node versions are now stable, and version numbers now communicate breakage, not stability. As it should be.
- ljharb 11y agonvm maintainer here: you do not need the `v`, it will always be automatically added if you've provided a version number that doesn't already match to an existing alias.
- webXL 11y agoTo preserve your npm packages, try: nvm install node --reinstall-packages-from=node
- jaredmcateer 11y agoOh that's super helpful I didn't rtfm enough, thanks for the tip.
- amk_ 11y agoIf you don't mind fetching package locations over HTTP https://github.com/creationix/nvm/issues/614 https://github.com/creationix/nvm/issues/614
- ljharb 11y agonvm maintainer here: the only thing that's done over HTTP is the initial redirect on http://nvm.sh http://nvm.sh, which will soon be HTTPS. This URL is only used if you type it in (because it's easy to remember). Everything else is done over Github's super-secure HTTPS - so there's really nothing to be paranoid about.
- amk_ 11y agoAh, thanks for the update