/ mozey.co / blog

install node ubuntu 1204

October 1, 2015

🔗 Remove old version

sudo apt-get purge nodejs npm

sudo apt-get autoremove

🔗 Install latest version

Debian and Ubuntu based Linux distributions

sudo apt-get install curl

curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash -

sudo apt-get install --yes build-essential

sudo apt-get install --yes nodejs

node -v
> v0.12.7

npm -v
> 2.11.3

🔗 Install grunt

sudo npm install -g grunt-cli