DEV Community

Cover image for How to install NodeJS
techtech for Technology Schächner

Posted on • Originally published at technik.xn--schchner-2za.de

1 1

How to install NodeJS

Today we will show you how to install Node.js in Ubuntu.

If you like our article, we would be very happy about a Like and a comment!


You think it's easy to do

sudo apt install nodejs
That's true, but with the command

node -v
is the output

v10.19.0
But we need a newer version.

This works as follows:

First we download the script: (version number is desired version number)

curl -sL https://deb.nodesource.com/setup_versionnumber.x -o /tmp/nodesource_setup.sh
Then we run it with the following command:

sudo bash /tmp/nodesource_setup.sh
Now we can just use nodejs

sudo apt-get install -y nodejs
to install.

If you now again

node -v
executes, the output should be:

version number....
You need Node.js e.g. for the next article:

Face recognition in NextCloud

Top comments (2)

Collapse
 
valeryxs profile image
Valeryxs

I just recently started learning NodeJS

Collapse
 
techtech profile image
techtech

@valeryxs
That's great!
Then hopefully this article will help you!

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay