react-nativereact-native-reanimatedreact-native-reanimated-v2react-native-debuggerreact-native-drawer

react-native-reanimated & react-navigation/drawer dependency error


I'm into a problem that I have already asked the discussions tab in the react-native-reanimated GitHub repository: this is the link in the github repo

I have cloned a react-native project and tried to install npm packages using npm install, but I have faced the error below

enter image description here

What I have done?

Any ideas and suggestions would be appreciated :)


Solution

  • This problem is going to be solved by just running npm with --legacy-peer-deps, this is going to tell the npm just don't do anything else except looking into the package-lock.json file and install the versions that you used to have in your node_modules folder.

    npm install --legacy-peer-deps
    

    I should mention that you are going to see this output while you are using npm version 7 or above.