Q: How to install Node.js on Ubuntu 16.04?

Nodejs Ubuntu apt-get

Answer:

To install Node.js using Ubuntu package manager, type the command below in your terminal:

sudo apt-get install nodejs

Now install Node package manager:

sudo apt-get install npm

Create a symbolic link for node, this will allow you to use nodejs using the command node.

sudo ln -s /usr/bin/nodejs /usr/bin/node

To check if node is correctly installed, use the command. Output of this command should print the node version number:

node -v

    No comments found for this tutorial, be the first to leave a comment!

Answered by
Double

Last updated on
Aug 12, 2016

Share