Expo-cli has been deprecated for a long time by now, and to receive the new Expo CLI, just simply run npm install expo
, yarn add expo
(if using Yarn), and Expo CLI is preinstalled in there. You can refer to this for more info Expo Docs on Expo CLI. I also recommend updating node.js to a version like 21.5 or newer, as it can really increase performance. I hope you will enjoy the new Expo Cli. Also, if you have already installed the new Expo Cli, do NOT use any commands starting with expo
, as the is referring to the legacy cli and will pop up that error. Later, it would redirect to npx expo start
, but the error is still there. To get rid of the error, start your expo commands like npx expo {command}
, and the error should be gone.