install nodejs stable – ubuntu

# this version is old
sudo apt-get install -y nodejs npm
sudo npm install n -g
# install stable version by n package
sudo n stable
sudo apt-get remove nodejs npm


install nodejs mac

brew install nvm
mkdir .nvm
export NVM_DIR="$HOME/.nvm"
source $(brew --prefix nvm)/

nvm ls-remotenvm
nvm install v6.11.1
nvm use v6.11.1
nvm alias default v6.11.1


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.