windowsnpmexpoeaspath-variables

eas : The term 'eas' is not recognized as the name of a cmdlet, function, script file, or operable program - expo


every thing was working fine with development build until I edited some user variables mistakenly .

then all eas commands end with this error:

eas : The term 'eas' 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
+ eas login
+ ~~~
    + CategoryInfo          : ObjectNotFound: (eas:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

I've tried npm install -g eas-cli and npm uninstall -g eas

and didn't work


Solution

  • I fixed it after adding these paths into system variables

    1_ C:\Users\YourPcName\AppData\Roaming\npm and I moved it up to the top of all other paths

    2_ C:\Users\YourPcName\AppData\Roaming\npm\node_modules\eas-cli\bin