How to Uninstall NPM modules in React Native

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 the package from the node modules folder as well as from package.json. If you want to remove the dependency in the global scope then you can use the following command.

npm -g uninstall <name> –save

I hope this short react native tutorial to uninstall node modules is helpful for you.

Similar Posts

Leave a Reply