qwe123
qwe123

Reputation: 61

Can't deploy heroku on Mac OS M1

I'm new on Heroku and trying to deploy my project here. After I typed this command in the terminal: curl https://cli-assets.heroku.com/install.sh | sh

and I also typed the administrative password correctly , I got this error message: unsupported arch: arm64

Upvotes: 6

Views: 4303

Answers (6)

jbrainz
jbrainz

Reputation: 59

Had the same issue, had to use npm. npm install -g heroku

Upvotes: 0

vlezya
vlezya

Reputation: 1

brew tap heroku/brew && brew install heroku

This command doesn't work for me

==> Installing heroku from heroku/brew
Error: Your Xcode (14.0.1) is too outdated.
Please update to Xcode 14.1 (or delete it).
Xcode can be updated from the App Store.

but there is no update in theApp Store.

Upvotes: 0

Huang Yu Ti
Huang Yu Ti

Reputation: 1

Try

arch -arm64 brew install heroku

Upvotes: -2

zerocog
zerocog

Reputation: 1763

Download the tarball macOS

tar xvf heroku-darwin-x64.tar
sudo mv heroku /usr/local/lib
cd /usr/local/bin
ln -s  /usr/local/lib/heroku/bin/heroku .
heroku --help

Apple Silicon Issues If you’re getting the following error on a machine with an Apple M1 chip, you haven’t installed or declined to install Rosetta 2. Bad CPU type in executable Installing Rosetta 2 resolves this issue. If you don’t want to install Rosetta 2 on your machine, you can install the Heroku npm package globally and use your own Node binary locally. Only v16 of Node has M1 ARM support and npm isn’t the recommended install method. ref: heroku install

Upvotes: 1

user12970426
user12970426

Reputation:

Try

arch -arm64 brew install heroic

Upvotes: -2

Beppe C
Beppe C

Reputation: 13913

The script does not support arm64 (see line 40 pf the script).

The easier option is to install via brew

brew tap heroku/brew && brew install heroku

or download the tarball for macOS (if you still prefer doing it manually)

Upvotes: 8

Related Questions