🛠️
Install Node.js via its version manager, NVM
- Install NVM. Search latest version tag from the repo.. Here, we use v0.39.2For more details, follow the instruction in Installing and Updating section.
$ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
- Verify. (
which nvm
will not work, since nvm is a sourced shell function, not an executable binary.)$ command -v nvm
- Install latest Node.js via NVM. (Pick feasible version from here)
e.g.,$ nvm install 19.3.0
- Enable Node.js you've installed.
e.g.,$ nvm use 19.3.0
Discussion