Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
vms:webdev:nodejs [2015/09/14 16:51]
admin [Packages Installation]
vms:webdev:nodejs [2017/06/05 13:25]
admin [Packages Installation]
Line 25: Line 25:
 If you need a specific key, you have to get it, and know on which server to find it, it's in a key server (very probably any key server will do): If you need a specific key, you have to get it, and know on which server to find it, it's in a key server (very probably any key server will do):
 <​code>​ <​code>​
-> sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ​8B48AD6246925553+> sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ​XXXXXXXXXXXXXXX
 </​code>​ </​code>​
  
Line 35: Line 35:
 </​code>​ </​code>​
  
-Then, to install Node.js (v0.12 at the time of this writing)+Then, to install Node.js (LTS is v4 at the time of this writing)
 <​code>​ <​code>​
-> curl -sL https://​deb.nodesource.com/​setup_0.12 | sudo bash -+> curl -sL https://​deb.nodesource.com/​setup_4.| sudo bash - 
 +> sudo apt-get install -y nodejs 
 +</​code>​ 
 + 
 +**That'​s it !** 
 + 
 +You should now have node.js, as well as npm, installed on your system: 
 +<​code>​ 
 +> node -v 
 +v0.12.7 
 + 
 +> npm -v 
 +2.11.3
 </​code>​ </​code>​