Installing NodeJS v4 latest using NVM (Node Version Manager)
- Download and install NVM -
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash - Follow terminal output and copy nvm loading scripts to
~/.bash_profile(Mac) or~/.bashrc - Install Node v4 -
nvm install v4- this will install the latest version 4.x.x - (optional) Set installed version as default -
nvm alias default v4.x.x