Categories
Node.js

Node.js and NPM on Wheezy

It was a surprise, after some years in Ubuntu ground! Using a Debian stable release could take you in old times when running Linux ment hacking your own system. But it’s still this way, if you use it day-by-day.

With Ubuntu it’s a piece of cake to add Node.js and NPM with apt-get, while Debian Wheezy has no packages.

The official way is to download the latest stable release of node.js and go further with standard compilation. But I am using a Wheezy to have a stable system without of all the mess of old Slackware time.

After some surfing around, I have found there are official backports for Wheezy and it seems the most easy and “stable” way to add just the packages you need is this one:

echo "deb http://ftp.us.debian.org/debian wheezy-backports main" >> /etc/apt/sources.list
apt-get update
apt-get install nodejs nodejs-legacy
curl --insecure https://www.npmjs.org/install.sh | bash

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.