Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i downgrade expo and install a specific package?

Some of your project's dependencies are not compatible with currently installed expo package version: - @react-native-community/netinfo - expected version range: 5.5.1 - actual version installed: ^5.8.0 Your project may not work correctly until you install the correct versions of the packages. To install the correct versions of these packages, please run: expo install [package-name ...]

Im getting this above warning. is there any cli command to do install specific expo package? if yes then please provide it. Thanks.

like image 899
vicky tr Avatar asked Nov 14 '25 19:11

vicky tr


1 Answers

Into your package.json file, update the version of @react-native-community/netinfo to the right one (5.5.1), and make a npm install again.

You can also provide the version by using the cli command :

npm i @react-native-community/[email protected]
like image 127
monsty Avatar answered Nov 17 '25 17:11

monsty



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!