Anjan Dutta

How to uninstall npm package

How to uninstall npm package

Published On: 12/09/2021

To uninstall an npm package you have to run the npm uninstall command in the terminal.

The format of the command is like below.

npm uninstall package_name

To uninstall a package under a scope name, use:

npm uninstall @scope_name/package_name


npm uninstall react-dom

When we uninstall a package, the complete installation is removed from the node_modules directory and the name is removed from the package.json file.