Installation error on mac M1

I’m trying to install the astro cli but when I exec the brew install I’m getting the following error:

▶ brew install astronomer/tap/astro

==> Tapping astronomer/tap
Cloning into '/opt/homebrew/Library/Taps/astronomer/homebrew-tap'...
remote: Enumerating objects: 306, done.
remote: Counting objects: 100% (120/120), done.
remote: Compressing objects: 100% (100/100), done.
remote: Total 306 (delta 52), reused 45 (delta 20), pack-reused 186
Receiving objects: 100% (306/306), 49.60 KiB | 393.00 KiB/s, done.
Resolving deltas: 100% (136/136), done.
Error: Invalid formula: /opt/homebrew/Library/Taps/astronomer/homebrew-tap/Formula/astro.rb
formulae require at least a URL
Error: Invalid formula: /opt/homebrew/Library/Taps/astronomer/homebrew-tap/Formula/astro@0.25.1.rb
formulae require at least a URL
Error: Cannot tap astronomer/tap: invalid syntax in tap!

I tried via curl as well but it didn’t work either. Please guys, help!

+1. I have this same error.

Looks like it doesn’t support M1 yet.

I was able to get it working. First, I installed Docker. Then ran these commands.

arch -x86_64 /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)”

arch -x86_64 /usr/local/bin/brew install astronomer/tap/astro@0.25.1

2 Likes

@pdrabinski’s answer worked for me too.

arch -x86_64 /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)”
arch -x86_64 /usr/local/bin/brew install astronomer/tap/astro
astro version

Worth to note, I already had curl command line tool and rosetta2 both installed.

M1, Monterey 12.0.1 and Docker Desktop 4.1.1 (69879)