Closed Johnson1s closed 2 months ago
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
nvm install 20
node -v # should print v20.17.0
v20.17.0
npm -v # should print 10.8.2
10.8.2
Motivation ("The Why")
Example
How
Current Behaviour
installs nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
download and install Node.js (you may need to restart the terminal)
nvm install 20
verifies the right Node.js version is in the environment
node -v # should print
v20.17.0
verifies the right npm version is in the environment
npm -v # should print
10.8.2
Desired Behaviour
References