Node.js - npm uninstall

by
Jeremy Canfield |
Updated: July 22 2024
| Node.js articles
Let's say you have installed the Sails package locally (without the -g or --global) flag into your present working directory. The npm list command without the -g or --global flag should show that Sails is installed locally.
~]# npm list
root@ /root
sails@1.4.4
The npm uninstall command without the -g or --global flag can be used to uninstall a local package. In this example, Sails in the present working directory will be uninstalled.
npm uninstall sails
Similarly, the -g or --global flag can be used to uninstall packages that were installed using the -g or --global flag.
npm uninstall sails --global
Did you find this article helpful?
If so, consider buying me a coffee over at