Install Node
To install the latest version of Node.js, you can follow these steps:
Using Node Version Manager (NVM) (recommended for managing multiple Node.js versions):
First, install NVM if you haven't already. You can do this via the terminal:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bashor
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bashReplace
v0.39.7with the latest version if it has been updated.Close and reopen your terminal to start using NVM.
Install the latest version of Node.js:
nvm install nodeThis command installs the latest stable version of Node.js.
Verify the installation:
node --versionTo install Node.js version 22 specifically:
nvm install 22This command installs Node.js version 22.
By following these steps, you can manage and install different versions of Node.js easily using NVM.
Last updated