React-native-push-notification: Install any Lib

Created on 27 May 2019  路  5Comments  路  Source: zo0r/react-native-push-notification

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:

Captura de Tela 2019-05-27 a虁s 14 33 56

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.

Most helpful comment

use rm -rf node_modules/*/.git in project directory to fix it

All 5 comments

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/*/.git in project directory to fix it

It's Solved !!!

Was this page helpful?
0 / 5 - 0 ratings