- Install-Module -Name power-nvm
It has the following commands (for now),
- nvm default <Version> # set version as default
- nvm install <Version> # install version
- nvm ls [Filter] # list installed versions
- nvm ls-remote [Filter] # list released versions
- nvm setdir <Path> # set NODE main dir
- nvm use <Version> # use NODE version
It sets a folder for the Node installation (also sets $env:NODE_DIR) and inside it creates a folder called versions where Node is "installed" when you run nvm install <Version>.
When you use nvm <Version> it adds versions\<Version> folder to the path in the current session only.
When you use nvm default <Version> it copies the files from versions\<Version> to a level above, which is $env:NODE_DIR and that is included in the path.
It shows all files installed in versions folder.
- help nvm
- nvm <Command> -help [-full | -detailed | -examples]