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 use a version it adds
versions\ folder to the path in the current session only.
nvm default it copies the files from
versions\ to a level above, which is
$env:NODE_DIR and that is included in the path.
nvm ls it shows all files installed in
In the README.md on github.com/brunolm/nvm you can find examples and more.
Help commands are available:
help nvm nvm <Command> -help [-full | -detailed | -examples]