Installing Node Version Manager
1. Download and Run the Installation Script
Run the following command to download and run the bash script:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash2. Install Node Version 18
Update the Shell Configuration
source ~/.bashrc # update the command from .bashrc fileInstall Node Version 18
nvm install 18 # install Node version 18Use Node Version 18
nvm use 18 # use Node version 18Verify the Node Version
node -v # verify the Node versionReference URL:
How can I install Node.js version 18 on Ubuntu 22.04? - Stack Overflow (opens in a new tab)