Não é possível instalar o Nodejs 4 no Ubuntu 14.04

1

Eu executei os seguintes comandos na minha máquina do Vagrant. Como você pode ver, eu tenho o Nó 0.10.40 e não consigo atualizá-lo para 4.4.3, que é a versão atual do LTS.

vagrant@vagrant-ubuntu-trusty-64:~$ node -v
v0.10.40
vagrant@vagrant-ubuntu-trusty-64:~$ lsb_release -r
Release:        14.04
vagrant@vagrant-ubuntu-trusty-64:~$ sudo apt-get install --yes nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 178 not upgraded.
vagrant@vagrant-ubuntu-trusty-64:~$ node -v
v0.10.40

Estes são os comandos que usei para instalar o nodejs.

curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs

Eu também tentei executar apt-get remove --purge nodejs sem sucesso.

Por que não atualiza?

    
por Maria Ines Parnisari 22.04.2016 / 03:54

1 resposta

1

Eu finalmente consegui atualizá-lo compilando da fonte:

cd /usr/local/src
wget http://nodejs.org/dist/v4.4.3/node-v4.4.3.tar.gz
tar -xvzf node-v4.4.3.tar.gz
cd node-v4.4.3
./configure
make
sudo make install
sudo npm install npm -g
    
por Maria Ines Parnisari 23.04.2016 / 06:29