Thursday, February 7, 2013

How to Install NodeJS in Ubuntu 12.10 from package manager?

Instruction on how to install NodeJS in Ubuntu 12.10 64bit Server

Note: Line 2 is required if you encountered an error "Command Not Found" on Line 3.
Line 1: sudo apt-get install python-software-properties python g++ make
Line 2: sudo apt-get install software-properties-common
Line 3: sudo add-apt-repository ppa:chris-lea/node.js
You are about to add the following PPA to your system:Evented I/O for V8 javascript. Node's goal is to provide an easy way to build scalable network programs
More info: https://launchpad.net/~chris-lea/+archive/node.js
Press [ENTER] to continue or ctrl-c to cancel adding it
   gpg: keyring `/tmp/tmp2xgu27/secring.gpg' created
   gpg: keyring `/tmp/tmp2xgu27/pubring.gpg' created
   gpg: requesting key C7917B12 from hkp server keyserver.ubuntu.com
   gpg: /tmp/tmp2xgu27/trustdb.gpg: trustdb created
   gpg: key C7917B12: public key "Launchpad chrislea" imported
   gpg: Total number processed: 1
   gpg:               imported: 1  (RSA: 1)
   OK
Line 4: sudo apt-get update Line 5: sudo apt-get install nodejs npm
Enjoy NodeJS!!!

1 comment:

Josh Habdas said...

Thanks. I wan't able to use add-apt-repository until installing software-properties-common, which I didn't notice at first on the following Wiki: https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager