how to uninstall global npm packages and its reference packages code example
Example: how to uninstall global package npm
npm uninstall -g <package-name>
# example
npm uninstall -g webpack
npm uninstall -g <package-name>
# example
npm uninstall -g webpack