NodeJS is a popular javascript based framework that helps you build websites and applications using Javascript. It also comes with a Node Package Manager (NPM) that helps you install and manage different NodeJS modules. However, sometimes you may want to remove NodeJS and NPM from your system because you don’t need it anymore or because you face performance issues. In this article, we will look at how to uninstall NodeJS, NPM completely in Ubuntu.
How to Uninstall NodeJS, NPM Completely in Ubuntu
Here are the steps to uninstall NodeJS, NPM completely in Ubuntu.
Just open terminal and run the following commands to uninstall NodeJS & NPM completely in Ubuntu.
$sudo apt-get uninstall nodejs npm node
$sudo apt-get remove nodejs
npm
Both the above commands do the same thing of removing NodeJS & NPM. In some cases, the first command may work. In some systems, the second may work. That is why both these commands have been provided here.
Open sources.list in a text editor and remove any NodeJS locations that you have
$ sudo vi /etc/apt/sources.list.d
Update Ubuntu package library
$ sudo apt-get update
Verify that NodeJS has been removed with the following command.
$ which node
That’s it. As you can see it is very easy to uninstall NodeJS & NPM in Ubuntu.
Also read:
How to Fix “Unable to find socket transport SSL” error in PHP
How to Redirect URL/Page with Anchor Links
How to Convert Docx to PDF with Python
How to Setup SSH Passwordless login
How to Change NGINX User
Related posts:
Sreeram has more than 10 years of experience in web development, Python, Linux, SQL and database programming.