How to install Node.js v.10 on Linux (16.04 LTS)

Asked

Viewed 507 times

1

I’m following the documentation on the official website of Node for its installation in an environment Linux with Ubuntu distribution, which in turn redirects to this page on github demonstrating the following commands required for terminal installation:

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

The commands work and Node is installed, however, in the version 4.2.6.

I would like to know how to install the version 10, because in this version installed when I also install npm comes with a much older version and I can’t install Angular.

Suggestions will be welcome, including with the installation of Node without being via terminal also.

  • I think I solved your problem: I am finishing installing on a version 16.04.11 of Ubuntu. Let me finish installing, there’s nothing in the system he’s pulling too much, I check and pass you the solution.

  • Opa Augusto would appreciate it a lot, I’ve tried everything and nothing has solved so far.

1 answer

1


I installed an Ubuntu 16.04.11 with as little as possible.

As root user first thing I did replicate your first command:

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

then changed the command line to...

sudo apt-get install -y nodejs build-essential

...in order to seek and resolve dependency conflicts (which is why it took me so long):

After the installation

root@usr:/# nodejs --version
v10.15.3
root@usr:/# npm --version
6.4.1
  • 1

    I hope I’ve helped you.

  • 1

    It worked Augusto, it helped a lot. Thank you very much!

  • 1

    Secesso in his enterprise.

  • 1

    Oops, to all of us!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.