Unlike the web, React Native is not backwards compatible. This means that npm packages often need to be the exact right version for the currently installed copy of react-native in your project. Expo CLI provides a best-effort tool for doing this using a list of popular packages and the known working version combinations. Simply use the install command as a drop-in replacement for npm install:
npx expo install expo-camera Visit here to see more: https://docs.expo.dev/more/expo-cli/
Answer from Simranjeet on Stack Overflow
» npm install expo
I'm building my app using Expo and whenever I can, I use "expo install some-package". It seems to work most of the time, but something it doesn't and my only option seems to be to fall back to using npm install.
I realize that expo install is safer because it "knows" compatibility, but so far I've had to use npm because of failures with expo install (often peer dependency version conflicts). For 2-3 packages I've done this with, they all worked fine.
Is there any major risk I'm running by not using expo install for a couple packages? I'm I setting myself up for pain?
» npm install install-expo-modules