When using Node Version Manager, I can set the version of node to the latest version in the current directory with nvm use node
. How do you specify which version to use?
Let's say you have versions v8.2.0
and v8.3.0
installed.
To make version v8.2.0
the currently used one, you can call nvm use 8.2.0
.
nvm use
also accepts aliases, so you could create one like this:
nvm alias mysuperversion 8.2.0
and then make it the current one by calling nvm use mysuperversion
.
To make a specific version of Node a global one, you should create a default
alias (or modify it if it already exists, the same way you create a new one).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With