我正在尝试安装EAS CLI,并收到错误:ZSH:找不到命令:EAS
我在根文件夹中,
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(13)
当我使用M1芯片中将其添加到Mac操作系统中的.zshrc文件中时,它对我有用
It worked for me , when i added this to .zshrc file in Mac operating system with M1 chip
这是一个许可错误,经常发生在纱线上。使用:
而是。
This is a permission error, frequently happens on Yarn. Use:
instead.
对于MAC,上述工作都没有。检查您的
.npmrc
是否有类似的东西,您可以将此行添加到您的
.zshrc
或.bashrc
提供您已经安装了EAS或eas-cli
。npm-global屏幕截图
For mac and none of the above work. Check if your
.npmrc
has something like thisyou can then add this line to your
.zshrc
or.bashrc
provided that you already installed eas or eas-cli
.npm-global screenshot
将其与
NPX
前缀,并且可以正常工作Prefix it with
npx
and it will work fine我将此命令与“ NPX”相似;
然后还可以。
I used this command with "npx" like;
then its ok now.
检查 expo-cli 全球安装的软件包。在安装或检查版本 EAS
它对我有用
check expo-cli package installed globally. and after install or check version eas
it worked for me
确保使用-G标志在全球安装。这对我有用。
Make sure that it is installed globally with the -g flag. This worked for me.
以NPX为前缀。像这样
prefix it with npx. Like this
在EAS之前添加NPX,并且可以很好地
使用
NPX EAS INIT
Add npx before eas and it works fine
Use
npx eas init
如果您在MacOS上,
请输入密码
if you on macos
then enter password
首先,请确保安装了EAS CLI。您可以使用NPM或纱线在全球安装它:
使用NPM:
使用纱线:
安装后,验证
eas
命令是否可通过运行:First, make sure you have the EAS CLI installed. You can install it globally using npm or yarn:
Using npm:
Using yarn:
After installation, verify that the
eas
command is available or not by running:它说
使用EAS命令。
也许您可以在键入EAS [命令]之前先输入$ $
例如,
这对我有用。
it says
to use eas command.
Maybe you can type $ first before typing eas [command]
for example,
It worked to me.
由于某种原因,纱线没有将其添加到命令中,可能是一个路径问题,是纱线的设置问题。
使用NPM效果很好
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