docs/versioned_docs/version-8.0/how-to/using-nvm.md
nvm is a Node Version Manager. It's perfect for running multiple versions of Node.js on the same machine.
:::warning If you've already installed Node.js on your machine, uninstall Node.js before installing nvm. This will prevent any conflicts between the Node.js and nvm.
You can uninstall by running the following command in your terminal:
brew uninstall --force node
Once that's finished, run the following command to remove unused folders and dependencies:
brew cleanup
You can install nvm using Homebrew:
brew install nvm
Reference the nvm-windows repo.
:::info We have a specific doc for Windows Development Setup. :::
To confirm that nvm was installed correctly, run the following command in your terminal:
nvm --version
You should see the version number of nvm printed to your terminal.
nvm install latest
nvm install <version number>
To see all the versions of Node that you can install, run the following command:
nvm ls-remote
:::warning You'll need to install yarn for each version of Node that you install.
Corepack is included with all Node.js >=16.10 installs, but you must opt-in. To enable it, run the following command:
corepack enable
We also have a doc specifically for working with yarn. :::
nvm use <version number>
:::info Remember: Redwood has specific Node.js version requirements. :::
nvm ls
nvm alias default <<version number>>
nvm uninstall <<version number>>