Expo' Is Not Recognized as an Internal or External Command

expo is not recognized as an internal or external command

For some reason, the update messed with the path.
So I had to go to edit environment variables and add another line to the variable "Path" under the system variables.

Don't hit new. Click on "Path" under the system variables section and add a new line there. and use "%USERPROFILE%\AppData\Roaming\npm".

Then open a new command line and it should work.

after successful installation of expo-cli. 'expo' is not recognized as an internal or external command

Add expo cli and npm path to Environment Variable

C:\Users{username}\AppData\Roaming\npm
C:\Users{username}\AppData\Roaming\npm\node_modules\expo-cli

React Native Expo error: 'node' is not recognized as an internal or external command, operable program or batch file while setting up the project

After restarting the system, Node was recognized by my vs code terminal.

After that Yarn was throwing the same error.

I had to update Node, npm, yarn, and expo from Windows PowerShell as admin. Otherwise, none of it works if you don't update all of them from as admin.



Related Topics



Leave a reply



Submit