[nvm] Install nvm and switch node version

Install NVM(Node Version Manager)

mkdir ~/.nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash

Install node

nvm install 4.8.7
nvm use 4.8.7

Verify node version

$ node -v
v4.8.7
0
0 Comments
Inline Feedbacks
View all comments