how to uninstall and install newer npm code example
Example 1: uninstall node package
npm uninstall <package_name>
Example 2: how to uninstall npm package
npm uninstall -g <module_name> //to uninstall globally
npm uninstall <package_name>
npm uninstall -g <module_name> //to uninstall globally