Expected package, Found invalid when running expo doctor

Viewed 1227

I just saw that warning while building my app on expo logs. Then i run expo doctor localy and the below warnings come out. I try to delete package-lock.json and node modules then run the "npm install" but couldn't fix it. Is there any way to fix it?

expo doctor log:

    √ Found all copies of expo-modules-autolinking
        Expected package expo-modules-autolinking@~0.8.1
        Found invalid:
          expo-modules-autolinking@0.5.5
          (for more info, run: npm why expo-modules-autolinking)
    
        √ Found all copies of @expo/config-plugins
        Expected package @expo/config-plugins@^4.1.0
        Found invalid:
          @expo/config-plugins@4.0.18
          (for more info, run: npm why @expo/config-plugins)
    
        √ Found all copies of @expo/prebuild-config
        Expected package @expo/prebuild-config@^4.0.0
        Found invalid:
          @expo/prebuild-config@3.1.6
          (for more info, run: npm why @expo/prebuild-config)
        
         Didn't find any issues with the project!

package.json

"@expo/config-plugins": "^4.1.5",
"@expo/prebuild-config": "^4.0.0",
"expo-modules-autolinking": "~0.8.1",
2 Answers

Puts this lines in your package.json :

"resolutions": {
  "expo-modules-autolinking": "~0.8.1"
},
Related