Reputation: 21
i am attempting to create a react native (expo) project and followed the installation guide on their doc site but am running across an error.
I am running on windows 10. i ran these steps in the powershell.
npm install --global expo-cli
as well as npm install expo
then, when i try to create a new project by running expo init my-project
i get the error below.
expo : The term 'expo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
I've tried adding %USERPROFILE%\AppData\Roaming\npm
into the path variable but it doesnt affect anything.
please help
error output
Upvotes: 1
Views: 4475
Reputation: 1
I happened to resolve mine by looking out for the directory in which the expo-cli was installed. I happened to find mine in a path that has this format C:\Users\USERNAME\.npm
Once you get to the directory, you will notice you have your expo and expo-cli files and scripts in there. Then follow the steps below
Upvotes: 0