Power NVM – A Node Version Manager for Windows

nvm is a popular tool that runs on bash to manager node versions. power-nvm is a version I created for Windows, to install:

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.

When you nvm use a version it adds versions\ folder to the path in the current session only.

When you nvm default it copies the files from versions\ to a level above, which is $env:NODE_DIR and that is included in the path.

When you nvm ls it shows all files installed in versions folder.

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]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s