Get in touch
or send us a question?
CONTACT

[Node.js Tutorials for Beginners] – Unit 1: Install Node.js Version for Ubuntu

thumbnail

Ubuntu 18.04 contains a version of Node.js in its default repositories that can be used to provide a consistent experience across multiple systems. At the time of writing, the version in the repositories is 8.10.0. This will not be the latest version, but it should be stable and sufficient for quick experimentation with the language.

To get the version, you can use the apt package manager. Refresh your local package index by typing:

$ sudo apt update

Install Node.js from the repositories:

$ sudo apt install nodejs

If the package in the repositories suits your needs, this is all you need to do to get setup with Node.js. In most cases, you will also want to install ‘npm’, the Node.js package manager. You can do this by typing:

$ sudo apt install npm

This will allow you to install modules and packages to use with Node.js

To check which version of Node.js you have installed after these initial steps, type:

$ nodejs -v

Through the above article, you have learned how to install Node.js, this is the background step for you to continue in the next articles 😀

Thank you!