LoginSignup
0
0

Homebrew error when install

Last updated at Posted at 2024-04-20

error when install homebrew

==> Updating Homebrew...
Error: Failed to download https://formulae.brew.sh/api/formula.jws.json!
Failed to download https://formulae.brew.sh/api/cask.jws.json!
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:d783cbeb6e6ef0d71c0b442317b54554370decd6fac66bf2d4938c07a63f67be
############################################################################################################################################################################ 100.0%
==> Pouring portable-ruby-3.1.4.arm64_big_sur.bottle.tar.gz
curl: (35) Recv failure: Connection reset by peer
Error: Failure while executing; `/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --user-agent Homebrew/4.2.18\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 14.3.1\)\ curl/8.4.0 --header Accept-Language:\ en --fail --progress-bar --silent --remote-time --output /Users/user/Library/Caches/Homebrew/api/cask.jws.json --location --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.2.18\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 14.3.1\)\ curl/8.4.0 --header Accept-Language:\ en --fail --progress-bar --silent --compressed --speed-limit 100 --speed-time 5 https://formulae.brew.sh/api/cask.jws.json` exited with 35. Here's the output:
curl: (35) Recv failure: Connection reset by peer

Failed during: /opt/homebrew/bin/brew update --force --quiet

try command

homebrew command

brew update twice
brew doctor

cache clear

brew cleanup

solution

It seems to be a network problem, so waiting for a while or executing it again with another stable wifi may solve the problem.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0