Last active
November 18, 2025 13:18
-
-
Save calpamos/7cd1d02a1b4508932b242e4cf032a343 to your computer and use it in GitHub Desktop.
install nvm (node version manager)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash | |
| 2. export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" | |
| [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
| 3. nvm install 18.20.0 | |
| ---- | |
| show node versions available to install: | |
| nvm ls-remote | |
| show installed node versions: | |
| nvm ls | |
| change between installed versions: | |
| nvm use 18.20.0 | |
| uninstall node versions: | |
| nvm uninstall 18.20.0 | |
| set a default node version for system: | |
| nvm alias default node 18.20.0 | |
| path for a node installation: | |
| nvm which 18.20.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment