Saturday, June 15, 2013

Install node.js on Linux Mint 15

Install node.js on Linux Mint 15 (based on here):

$ sudo add-apt-repository ppa:chris-lea/node.js
$ sudo apt-get update
$ sudo apt-get install nodejs

Notes:

  • There is a "node.js" in first sudo line above but only "nodejs" in third sudo line! Careful.
  • As of Node.js v0.10.0, the nodejs package from Chris Lea's repo includes both npm and nodejs-dev.


node.js doc is here.

node.js into video tutorial. into on-line book.


Log of the apt-get install step:

T510 ~ # apt-get install nodejs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  rlwrap
The following NEW packages will be installed:
  nodejs rlwrap
0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
Need to get 6,012 kB of archives.
After this operation, 17.4 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ppa.launchpad.net/chris-lea/node.js/ubuntu/ raring/main nodejs amd64 0.10.11-1chl1~raring1 [5,926 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ raring/universe rlwrap amd64 0.37-3 [85.7 kB]
Fetched 6,012 kB in 3s (1,724 kB/s)                             
Selecting previously unselected package rlwrap.
(Reading database ... 181805 files and directories currently installed.)
Unpacking rlwrap (from .../rlwrap_0.37-3_amd64.deb) ...
Selecting previously unselected package nodejs.
Unpacking nodejs (from .../nodejs_0.10.11-1chl1~raring1_amd64.deb) ...
Processing triggers for man-db ...
Setting up rlwrap (0.37-3) ...
update-alternatives: using /usr/bin/rlwrap to provide /usr/bin/readline-editor (readline-editor) in auto mode
Setting up nodejs (0.10.11-1chl1~raring1) ...
T510 ~ # 

No comments:

Post a Comment