I am trying to install eas cli and am getting the error: zsh: command not found: eas
Asked Answered
H

13

14

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 "[email protected]" with binaries:

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

zsh: command not found: eas
Hocker answered 5/7, 2022 at 19:51 Comment(0)
N
27

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
Nahshun answered 25/8, 2022 at 21:58 Comment(0)
S
5

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"
Schizont answered 3/4, 2023 at 16:25 Comment(0)
A
4

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

Abdominal answered 3/10, 2022 at 8:54 Comment(0)
E
3

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

$ sudo yarn global add eas-cli

instead.

Erichericha answered 6/7, 2022 at 5:28 Comment(0)
B
2

I prefix it with npx and it worked fine

npx eas login
Broaddus answered 15/1 at 5:16 Comment(0)
A
1

I used this command with "npx" like;

npx eas init --id XXXXXXXXXXXXXXXXXXX

then its ok now.

Andalusite answered 2/12, 2022 at 16:20 Comment(0)
I
1

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

it worked for me

Intelligibility answered 20/5, 2023 at 20:30 Comment(0)
Y
0

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

Yucca answered 23/8, 2022 at 22:34 Comment(0)
G
0

prefix it with npx. Like this

npx eas login
Georganngeorge answered 26/5 at 14:12 Comment(0)
A
0

Add npx before eas and it works fine

Use

npx eas init

Acatalectic answered 31/5 at 9:39 Comment(0)
S
0

if you on macos

sudo npm install -g eas-cli

then enter password

Spheroidal answered 11/6 at 20:35 Comment(0)
A
0

First, make sure you have the EAS CLI installed. You can install it globally using npm or yarn:

Using npm:

npm install -g eas-cli

Using yarn:

yarn global add eas-cli

After installation, verify that the eas command is available or not by running:

eas --version
Arvonio answered 24/7 at 7:56 Comment(0)
S
-3

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.

Sharenshargel answered 29/9, 2022 at 2:12 Comment(0)

© 2022 - 2024 β€” McMap. All rights reserved.