Make sure you have a
.bashrcfile in your user profile folder (
~/.bashrc) as the
nvmcommand will be configured there. If not, create one.
Install nvm (Node Version Manager): In Git Bash, run the
curlcommand written here. Alternatively, instead of using
curl, you can download the install script (
install.sh) also from here, right click the file » “Open with” » “Git for Windows”.
Close Git Bash and reopen it.
command -v nvmwhich should output
nvmif the installation was successful.
nvm install nodewhich will install Node.js and npm as well.
node -vto confirm the installation was successful.