我正在尝试安装EAS CLI,并收到错误:ZSH:找不到命令:EAS

发布于 2025-02-13 04:40:00 字数 165 浏览 3 评论 0原文

我在根文件夹中,

yarn global add eas-cli

然后输入:我得到:

yarn global v1.22.19
warning ../../package.json: No license field
[1/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 "[email protected]" with binaries:

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

zsh: command not found: eas

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(13

洛阳烟雨空心柳 2025-02-20 04:40:01

当我使用M1芯片中将其添加到Mac操作系统中的.zshrc文件中时,它对我有用

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

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"
々眼睛长脚气 2025-02-20 04:40:01

这是一个许可错误,经常发生在纱线上。使用:

$ sudo yarn global add eas-cli

而是。

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

$ sudo yarn global add eas-cli

instead.

柠檬色的秋千 2025-02-20 04:40:01

对于MAC,上述工作都没有。检查您的.npmrc是否有类似的东西,

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

您可以将此行添加到您的.zshrc.bashrc

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

提供您已经安装了EAS或eas-cli

。npm-global屏幕截图

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

无远思近则忧 2025-02-20 04:40:01

将其与NPX前缀,并且可以正常工作

npx eas login

Prefix it with npx and it will work fine

npx eas login
兔小萌 2025-02-20 04:40:01

我将此命令与“ NPX”相似;

npx eas init --id XXXXXXXXXXXXXXXXXXX

然后还可以。

I used this command with "npx" like;

npx eas init --id XXXXXXXXXXXXXXXXXXX

then its ok now.

戒ㄋ 2025-02-20 04:40:01

检查 expo-cli 全球安装的软件包。在安装或检查版本 EAS

它对我有用

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

it worked for me

喜爱皱眉﹌ 2025-02-20 04:40:01

确保使用-G标志在全球安装。这对我有用。

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

雨夜星沙 2025-02-20 04:40:01

以NPX为前缀。像这样

npx eas login

prefix it with npx. Like this

npx eas login
旧街凉风 2025-02-20 04:40:01

在EAS之前添加NPX,并且可以很好地

使用

NPX EAS INIT

Add npx before eas and it works fine

Use

npx eas init

喜爱纠缠 2025-02-20 04:40:01

如果您在MacOS上,

sudo npm install -g eas-cli

请输入密码

if you on macos

sudo npm install -g eas-cli

then enter password

晒暮凉 2025-02-20 04:40:01

首先,请确保安装了EAS CLI。您可以使用NPM或纱线在全球安装它:

使用NPM:

npm install -g eas-cli

使用纱线:

yarn global add eas-cli

安装后,验证eas命令是否可通过运行:

eas --version

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
不再见 2025-02-20 04:40:01

它说

$ eas [COMMAND]

使用EAS命令。

也许您可以在键入EAS [命令]之前先输入$ $
例如,

    $eas login

这对我有用。

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.

浪推晚风 2025-02-20 04:40:00

由于某种原因,纱线没有将其添加到命令中,可能是一个路径问题,是纱线的设置问题。

使用NPM效果很好

npm install -g eas-cli

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文