After installing the react-native-push-notification library, it is no longer possible to install any react native libraries. When trying to install another lib in the project, the error below is displayed:

To solve the problem it is necessary to uninstall the lib with "npm uninstall react-native-push-notification" and install the desired lib. But this process disrupts the performance of the project.
use rm -rf node_modules/*/.git in project directory to fix it
I have the same problem
I have the same problem
Try rm -rf node_modules/*/.git
Yes! now perfect.
The problem is the .git directory that must be deleted (every time).
And that for iOS, it is necessary to do the part of manual installation.
https://facebook.github.io/react-native/docs/pushnotificationios.html
use
rm -rf node_modules/*/.gitin project directory to fix it
It's Solved !!!
Most helpful comment
use
rm -rf node_modules/*/.gitin project directory to fix it