npm uninstall <package_name>
//Example
npm uninstall mongoose
//A tip ctrl+c helps to terminate a job in terminal
npm uninstall --save <package_name>
npm uninstall -g <module_name> //to uninstall globally
BASH
copy
npm uninstall <package-name>
I have tried uninstalling global packages in several ways.
npm uninstall -g <package_name> this didn't work.
I managed to remove the global packages in the following way:
Goto terminal
Run this command npm list -g
Goto the path (C:UsersuserAppDataRoaming
pm)
Delete all the related files to your package
Goto node_modules find and delete the package
This should work.