Node.js on Windows-
Visit the Node.js official website and download and install
Node.js on macOS-
Open terminal and run this command
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"brew install nodeNode.js on Linux (Ubuntu/Debian)-
Open terminal and run this commands
sudo apt updatesudo apt install nodejs npmAfter installing you can check version
node -v
npm -v