expo-cli icon indicating copy to clipboard operation
expo-cli copied to clipboard

expo and expo-cli are not recognised as commands

Open v-beletskiy opened this issue 7 years ago • 7 comments

The fix has been released in the version 31.0.6 of the expo package. The workaround described above is no longer necessary when using [email protected] or later.

Originally posted by @fson in https://github.com/expo/expo-cli/issues/51#issuecomment-444108426

Solutions, mentioned here https://github.com/expo/expo-cli/issues/51 don't work.

See the same problem - expo and expo-cli are not recognised as commands. Can't start the project neither by npm run start, nor explicitly by expo start. expo-cli start doesn't work as well. It is proposed to install expo-cli in cmd, but after installation ... it is proposed to install expo-cli.

Tried different versions of expo. Use "expo": "^33.0.5" for now.

v-beletskiy avatar Jun 13 '19 20:06 v-beletskiy

Any ideas? Expo-cli is being installed successfully, but running expo commands afterwards leads to the notification that expo command is not found. Please, help.

v-beletskiy avatar Jun 16 '19 17:06 v-beletskiy

Are you on Windows? Mac?

I would verify that your PATH environment variable contains a reference to NPM prefix. I had a similar issue on Mac where it was being set in Terminal, but VS Code had the wrong prefix.

Exoshale avatar Jun 17 '19 15:06 Exoshale

Windows 10. I've got this one. image

v-beletskiy avatar Jun 20 '19 19:06 v-beletskiy

How you fix this on mac?

kareniukas avatar Jun 21 '19 10:06 kareniukas

i have the same problem, but in macOS, expo and expo-cli installed, PATH ok, but, on bash expo command is not recognized

eddskt avatar Dec 18 '19 14:12 eddskt

Same issue

jerlam06 avatar Jul 22 '20 13:07 jerlam06

To get the expo-cli expo command, run npm i -g expo-cli. Any issue outside of that is out of scope for this repo and most likely due to how node is installed on a computer. The issue can also occur when expo-cli is installed with sudo (never do this please).

Closing this issue because it's pretty old, so visibility won't be great for users looking to find a quick troubleshooting tip. I highly recommend using Stack Overflow, or the Expo forums for more active/better support.

EvanBacon avatar Jul 07 '21 04:07 EvanBacon