Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

expo and expo-cli are not recognised as commands #727

Closed
v-beletskiy opened this issue Jun 13, 2019 · 7 comments
Closed

expo and expo-cli are not recognised as commands #727

v-beletskiy opened this issue Jun 13, 2019 · 7 comments
Labels
Installation The issue pertains to installing expo-cli

Comments

@v-beletskiy
Copy link

v-beletskiy commented Jun 13, 2019

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 expo@31.0.6 or later.

Originally posted by @fson in #51 (comment)

Solutions, mentioned here #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 v-beletskiy changed the title 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 expo@31.0.6 or later. expo and expo-cli are not recognised as commands Jun 13, 2019
@v-beletskiy
Copy link
Author

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.

@Exoshale
Copy link

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.

@v-beletskiy
Copy link
Author

Windows 10.
I've got this one.
image

@kareniukas
Copy link

How you fix this on mac?

@fson fson added the Installation The issue pertains to installing expo-cli label Sep 10, 2019
@eddskt
Copy link

eddskt commented Dec 18, 2019

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

@jerlam06
Copy link

Same issue

@EvanBacon
Copy link
Contributor

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.

@expo expo locked and limited conversation to collaborators Jul 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Installation The issue pertains to installing expo-cli
Projects
None yet
Development

No branches or pull requests

7 participants