Online Installation#
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
# Or if wget is not available, run yum -y install wget
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
Refresh the configuration to use normally#
# Refresh the configuration
source ~/.bashrc
# Check if nvm is installed
nvm -v
Use nvm to download the relevant node version#
nvm install 18.16.0
# Common nvm commands
nvm uninstall 18.16.0 // Remove node 18.16.0
nvm use 18.16.0 // Use node 18.16.0
nvm ls // View currently installed nodes and the node in use
nvm ls-remote // View all node versions available for installation online
nvm alias default 18.16.0 // Use 18.16.0 as the default node version