npm unisnstall package code example
Example 1: how to uninstall npm package
npm uninstall -g <module_name> //to uninstall globally
Example 2: how to unistall dependencies
npm un <package_name>
npm uninstall -g <module_name> //to uninstall globally
npm un <package_name>