How to install node
node installation guide
This guide will help you install Node.js using Node Version Manager (NVM). NVM allows you to easily install and manage different versions of Node.js on your system.
Installation Steps
1. Install NVM (Node Version Manager)
Open your terminal and run the following command:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
After installation, add these lines to your shell configuration file (.bashrc
, .zshrc
, or .profile
):
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
Note: You may need to restart your terminal or run source ~/.bashrc
(or your appropriate shell configuration file) for the changes to take effect.
2. Verify NVM Installation
Verify that NVM is properly installed by checking its version:
nvm --version
3. View Available Node.js Versions
To see all available Node.js versions:
nvm ls-remote
This command displays a list of all Node.js versions that can be installed through NVM.
4. Install Node.js
Install your desired version of Node.js (version 20 or higher is required for float16 CLI):
nvm install <node_version>
5. Verify Installation
After installation, verify that Node.js is properly installed:
node --version
Last updated