lunes, 8 de junio de 2015

Install NodeJS and NPM in Linux Mint 17 or Ubuntu 14.04

Install NodeJS and NPM in Linux Mint 17 or Ubuntu 14.04

There are some problems compiling the NodeJS sources in Linux, here is an easy way to install NodeJS and NPM using the chris-lea repository.
Just write these commands using a terminal window.
First, we must uninstall any previous nodejs version and npm.
sudo apt-get remove nodejs nodejs-dev npm
Now we add the chris-lea repository.
sudo add-apt-repository ppa:chris-lea/node.js 
sudo apt-get update
sudo apt-get install nodejs

We can test if everything is ok checking the nodejs version.
nodejs -v
npm -v
For previous Linux versions could be possible to install npm as an aditional package.


Otra Forma

No hay comentarios.:

Publicar un comentario