Node js is one of the most popular programming languages in the IT industry. Here we will share with you how to install node js latest version in ubuntu 16.04 with example.
First, you make sure the node is installing in your ubuntu system or not? check this running by the following command.
node -v
// or
nodejs -v
If you did not find a node in your ubuntu server then you can now install node js in your server help of the following command. here we will share with you how to install all node js version by running the command in your terminal.
sudo apt-get update
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get update
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get update
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get update
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
After installing nodejs in your ubuntu system then if you want to uninstall nodejs from the server then run the following commanat in your terminal.
sudo apt-get purge nodejs
it is only removing node
related packages i.e. relevant packages, nothing more.
On the other hand, when you do:
sudo apt-get purge --auto-remove nodejs
it is necessarily doing:
sudo apt-get purge nodejs
sudo apt-get autoremove
As you can see, nodejs installing and uninstalling is very easy process
We hope that small tutorials help everyone. Thanks.
Hi, My name is Harsukh Makwana. i have been work with many programming language like php, python, javascript, node, react, anguler, etc.. since last 5 year. if you have any issue or want me hire then contact me on [email protected]
How to remove white space from the beginning of a string in PHP
Use the PHP ltrim() function...Using Gmail SMTP Server to send Email in Laravel
Follow the below steps to setup email...How to populate dropdown list with array values in PHP
Use the PHP foreach loop Yo...Failed to listen on 127.0.0.1:8000 (reason: Address already in use)
Laravel is the most popular and open-sou...How to Redirect back to Previous URL After Login in Laravel
Laravel has many useful features which m...