You see, the process to uninstall npm is not a standalone task. Since it forms part of the Node.js altogether, it so happens that you need to remove the whole package to get rid of it.
And so, without sparing much effort on the text, let’s move on to knowing how it’s done. I’ve prepared a step-by-step guide for the purpose as follows.
Steps To Uninstall Npm In Ubuntu
1. Firstly, Open up the terminal either by pressing Ctrl+Alt+T or by tapping on the app.
2. Now, Verify the version of npm already installed by typing “npm -v”
3. Once the existence is confirmed – Type “sudo apt-get remove npm”
4. That’s it. You can verify again using the “npm -v” command to check if it’s left.
Steps To Uninstall Npm In Windows
1. First up, Pull up the Start Menu and Search for “Uninstall Node.js”
2. Right Click on the icon, Goto “More” and then click on “Run as administrator.”
3. In the dialog box that pops up, select “Yes” to finally remove npm.
4. That’s it for Windows. Npm is successfully removed.
I believe the steps, as presented above, were helpful to you. Although a no. of users use both the OS individually, I think that this tutorial was pretty beneficial for those using it on Windows.
It wasn’t difficult at all, and it was effortless to follow. Wasn’t it? Do comment your views.
Stay Tuned To Tech.