Compiled all the commands in one place. Hope this helps.
nvm install <node_version> // Install a specific Node version nvm install node // Install latest Node release (Current) nvm install --lts // Install latest LTS release of NodeJS nvm install-latest-npm // Install latest NPM release only
nvm ls-remote nvm ls-remote | grep -i "latest" nvm ls-remote | grep -i "<node_version>"
nvm list node // Lists installed Node versions nvm list (or) nvm ls // Lists installed Node versions with additional release info
nvm use node // Switch to the latest available Node version nvm use <node_version_or_alias> // Switch to a specific version nvm use --lts // Switch to the latest LTS Node version
node -v (or) node --version npm -v (or) npm --version nvm -v (or) nvm --version
nvm alias default node // Always defaults to the latest available node version on a shell nvm alias default <node_version> // Set default node version on a shell nvm alias <alias_name> <node_version> // Set user-defined alias to Node versions nvm unalias <alias_name> // Deletes the alias named <alias_name>
nvm which <installed_node_version> // path to the executable where a specific Node version is installed
nvm uninstall <node_version> // Uninstall a specific Node version nvm uninstall --lts // Uninstall the latest LTS release of Node nvm uninstall node // Uninstall latest (Current) release of Node
To remove, delete, or uninstall nvm, just remove the $NVM_DIR folder (usually ~/.nvm)
Last active
October 20, 2022 18:40
-
-
Save mi-martinez/1dc22bc33e132f9a8dadaf553c555820 to your computer and use it in GitHub Desktop.
@mi-martinez.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment