.Nvm is a nodejs version manager. It let's you easily install and switch between versions. It retains globally installed packages for each version.
nvm-windowsnode version manager
curl https://raw.githubusercontent.com/creationix/nvm/v0.35.2/install.sh | bash source ~/.bashrc # update #!/bin/sh set -e cd ~/.nvm git fetch --tags TAG=$(git describe --tags `git rev-list --tags --max-count=1`) echo "Checking out tag $TAG..." git checkout "$TAG" source ~/.nvm/nvm.sh
mac env
export NVM_DIR="$HOME/.nvm" [ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm [ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion