How can I resolve the 'npm error could not determine executable to run' error if my Expo CLI is globally installed?

Question

Grade: Education Subject: Support
How can I resolve the 'npm error could not determine executable to run' error if my Expo CLI is globally installed?
Asked by:
115 Viewed 115 Answers

Answer (115)

Best Answer
(274)
Try uninstalling the global Expo CLI (`npm uninstall -g expo-cli`) and then either rely on npx (recommended: `npx expo start`) or try a local install with `npm install --save-dev expo-cli` and then use `npm run start` (assuming you have a start script in your package.json).