4

I am in the root folder and type:

yarn global add eas-cli

I then get:

yarn global v1.22.19
warning ../../package.json: No license field
[1/4]   Resolving packages...
[2/4]   Fetching packages...
[3/4]   Linking dependencies...
[4/4]   Building fresh packages...
success Installed "eas-cli@0.54.1" with binaries:

Then I go to use eas by typing eas login and I get:

zsh: command not found: eas
ttsssss
  • 95
  • 1
  • 2
  • 12

8 Answers8

9

For some reason yarn does not add it to commands, might be a path issue, set-up issue with yarn.

using npm it worked fine

npm install -g eas-cli
2

For mac and none of the above work. Check if your .npmrc has something like this

prefix=/Users/<username>/.npm-global

you can then add this line to your .zshrc or .bashrc

export PATH=$PATH:~/.npm-global/bin

provided that you already installed eas or eas-cli

.npm-global screenshot

jalipalo
  • 21
  • 5
1

This is a permission error, frequently happens on Yarn. Use:

$ sudo yarn global add eas-cli

instead.

Huanhuan Kuo
  • 409
  • 1
  • 10
0

Make sure that it is installed globally with the -g flag. This worked for me.

SamuelC00
  • 61
  • 6
0

I used this command with "npx" like;

npx eas init --id XXXXXXXXXXXXXXXXXXX

then its ok now.

0

It worked for me , when i added this to .zshrc file in Mac operating system with M1 chip

export PATH="$PATH:$(npm get prefix)/bin"
0

check expo-cli package installed globally. and after install or check version eas

it worked for me

cantaş
  • 127
  • 1
  • 8
-2

it says

$ eas [COMMAND]

to use eas command.

Maybe you can type $ first before typing eas [command] for example,

    $eas login

It worked to me.

mapple
  • 1
  • 2