How to Uninstall NPM modules in React Native

Last Updated on June 7, 2019.

React Native has so many useful third-party libraries. Hence, our tendency is to use as many libraries to make our tasks easier. But sometimes we may need to remove such libraries to make the react native project lighter.

Removing npm modules / third party libraries is almost the same as the installation of npm modules. You can uninstall the third party libraries in React Native using the following command. Replace <name> with the package name.

npm uninstall <name> –save

The command removes package from node modules folder as well as from package.json. If you want to remove the dependency in global scope then you can use the following command.

npm -g uninstall <name> –save

Leave a Reply

%d bloggers like this: