Heath SchweitzerHeath Schweitzer
← All posts

Install Node.js and NPM on Ubuntu

April 30, 2014|Heath Schweitzer|1 min read|20 views|Last Updated June 20, 2026

LinuxMac

Install Node.js from Git repository and NPM on  Ubuntu.

Make sure you have the necessary software

sudo apt-get update

sudo apt-get install git-core curl build-essential openssl libssl-dev g++

Install Node.js

git clone https://github.com/joyent/node.git

cd node

git tag (list released versions and select the version you want)

git checkout v0.10.26

./configure

make

sudo make install

node -v (check that node is installed correctly and version matches your choice)

Install NPM

curl -O -L https://npmjs.org/install.sh | sudo sh

npm -v (check that NPM is installed correctly)

Grab a coffee, you're done.

If this post was useful, consider buying me a coffee ☕ with ₿itcoin — no account needed, any amount welcome.

Bitcoin tip QR code
⚡ Open in Wallet