'expo' is not recognized as an internal or external command

jf___ picture jf___ · Oct 10, 2018 · Viewed 38.7k times · Source

After running npm install -g expo-cli and successfully installing the packages globally, expo is still not recognized as an internal or external command. Does anyone know how I might get around this issue using windows 10, or what to do in terms of something like a path variable.

Answer

Rocío García Luque picture Rocío García Luque · Mar 16, 2019

For Windows 10, you can simply add the npm folder to your path environment variable.

  1. Hit Windows key and search for Environment variables.
  2. Inside the Path variable under System variables, add a new entry with this content (without /node_modules ):

%USERPROFILE%\AppData\Roaming\npm

  1. Open a new command prompt and enter

> expo

You will see something like this: enter image description here