2
I’m trying to install nodejs on my Linux, but even putting the codes in for version 12.x:
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
The terminal only installs version 8.10.
When I execute the command sudo apt-get install -y nodejs build-essential
, it runs the processes and in the end it works:
nodejs is already the newest version (8.10.0~dfsg-2ubuntu0.4).
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 22 não atualizados.
Could someone explain to me the problem?