Uninstalling packages and dependencies
Remove a package from
node_modules
. This uninstalls a package, completely removing everything npm installed on its behalf.
npm uninstall <package_name>
Remove a global package.
npm uninstall -g <package_name>
Source