Error map

Homebrew: Failed to update / fatal: unable to access Homebrew: Error: Failure while executing; `git fetch --force origin` exited with 128 / fatal: not in a git directory

macOS · layer 6, Platform & cloud

Open the full error page →

Centre: this error. First ring: errors it is linked with (7). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

Homebrew: Failed to update / fatal: unable to access — Homebrew: Error: Failure while executing; `git fetch --force origin` exited with 128 / fatal: not in a git directory (macOS)Homebrew: F…Could not resolve host — fatal: unable to access 'https://github.com/…': Could not resolve host: github.com (Git)Could not resolve h…Homebrew: Permission denied @ dir_s_mkdir — Homebrew: Error: Permission denied @ dir_s_mkdir - /usr/local/Cellar / /opt/homebrew is not writable (macOS)Homebrew: Permissio…Homebrew: No available formula with the name — Homebrew: Error: No available formula with the name "x". Did you mean ...? (macOS)Homebrew: No availa…Your Command Line Tools are too outdated — Homebrew: Error: Your Command Line Tools (CLT) are too outdated. Update them from Software Update / Please update to the latest macOS (macOS)Your Command Line T…Homebrew Cask: It seems there is already an App at — Homebrew: Error: It seems there is already an App at '/Applications/Chrome.app' (macOS)Homebrew Cask: It s…zsh: bad CPU type in executable — macOS (Apple Silicon): zsh: bad CPU type in executable: ./tool (macOS)zsh: bad CPU type i…sed: 1: invalid command code (BSD sed) — macOS: sed: 1: "file.txt": invalid command code f / extra characters at the end of p command (macOS)sed: 1: invalid com…407 — HTTP 407 Proxy Authentication Required (HTTP)407408 — HTTP 408 Request Timeout (HTTP)408ETIMEDOUT — API Request Timed Out (ETIMEDOUT / ReadTimeout / timeout of 30000ms exceeded) (API)ETIMEDOUTEACCES — npm ERR! code EACCES — permission denied (npm)EACCESdaemon — Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (Docker)daemonsudoers — user is not in the sudoers file. This incident will be reported. (Linux)sudoerszsh: command not found: brew — macOS: zsh: command not found: brew (Homebrew not on PATH on Apple Silicon) (macOS)zsh: command not fo…zsh compinit: insecure directories — zsh: compinit: insecure directories, run compaudit for list. Ignore insecure directories and continue [y] or abort compinit [n]? (macOS)zsh compinit: insec…zsh: no matches found — zsh: no matches found: package[extra] (glob pattern not matched) (macOS)zsh: no matches fou…No Xcode or CLT — gyp: No Xcode or CLT version detected! (npm)No Xcode or CLTinvalid active developer path — xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun (iOS)invalid active deve…You have not agreed to the Xcode license agreements — macOS: Agreeing to the Xcode/iOS license requires admin privileges, please run "sudo xcodebuild -license" and then retry this command (macOS)You have not agreed…xcode-select: error: tool 'xcodebuild' requires Xcode — macOS: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance (macOS)xcode-select: error…Apple could not verify "x" is free of malware — macOS: “app” cannot be opened because Apple cannot check it for malicious software / Apple could not verify “app” is free of malware that may harm your Mac (macOS)Apple could not ver…"x" can't be opened because it is from an unidentified developer — macOS: “app” can’t be opened because it is from an unidentified developer (macOS)"x" can't be opened…exec format error — exec /usr/local/bin/docker-entrypoint.sh: exec format error (Docker)exec format errormach-o file, but is an incompatible architecture — macOS: dlopen: mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64') (macOS)mach-o file, but is…dyld: Library not loaded — macOS: dyld[123]: Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib — Reason: tried: ... (no such file) (macOS)dyld: Library not l…command not found — bash: command not found (Linux)command not foundillegal option on macOS (date -d, readlink -f, grep -P) — macOS: date: illegal option -- d / readlink: illegal option -- f / grep: invalid option -- P (macOS)illegal option on m…

Directly related (7)

Could not resolve hostGit

fatal: unable to access 'https://github.com/…': Could not resolve host: github.com

DNS lookup for the Git host failed from this machine.

Homebrew: Permission denied @ dir_s_mkdirmacOS

Homebrew: Error: Permission denied @ dir_s_mkdir - /usr/local/Cellar / /opt/homebrew is not writable

Homebrew can't write to its prefix because the folders are owned by another user or root.

Homebrew: No available formula with the namemacOS

Homebrew: Error: No available formula with the name "x". Did you mean ...?

Homebrew can't find a formula or cask with that name in the taps it knows.

Your Command Line Tools are too outdatedmacOS

Homebrew: Error: Your Command Line Tools (CLT) are too outdated. Update them from Software Update / Please update to the latest macOS

Homebrew requires a newer Command Line Tools version than the one installed.

Homebrew Cask: It seems there is already an App atmacOS

Homebrew: Error: It seems there is already an App at '/Applications/Chrome.app'

A cask install failed because the app is already installed manually (or a leftover exists).

zsh: bad CPU type in executablemacOS

macOS (Apple Silicon): zsh: bad CPU type in executable: ./tool

You ran an Intel (x86_64) program on an Apple Silicon Mac without Rosetta 2 (or an arm64 binary on an Intel Mac).

sed: 1: invalid command code (BSD sed)macOS

macOS: sed: 1: "file.txt": invalid command code f / extra characters at the end of p command

macOS ships BSD `sed`, where `-i` requires a backup-suffix argument, unlike GNU sed on Linux.

Two steps away (20)

407HTTP

HTTP 407 Proxy Authentication Required

A proxy between you and the server requires credentials before it will forward your request.

408HTTP

HTTP 408 Request Timeout

The server closed the connection because the client took too long to send the complete request.

ETIMEDOUTAPI

API Request Timed Out (ETIMEDOUT / ReadTimeout / timeout of 30000ms exceeded)

The client gave up waiting — either for the connection to open or for the response to arrive.

EACCESnpm

npm ERR! code EACCES — permission denied

npm can’t write to a directory — usually global installs into a root-owned folder.

daemonDocker

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

The docker CLI can’t talk to the Docker engine — it isn’t running, or your user can’t access the socket.

sudoersLinux

user is not in the sudoers file. This incident will be reported.

Your account isn’t allowed to use sudo.

zsh: command not found: brewmacOS

macOS: zsh: command not found: brew (Homebrew not on PATH on Apple Silicon)

Homebrew is installed in /opt/homebrew on Apple Silicon Macs, which isn’t on PATH until you add its shellenv line.

zsh compinit: insecure directoriesmacOS

zsh: compinit: insecure directories, run compaudit for list. Ignore insecure directories and continue [y] or abort compinit [n]?

zsh refuses to load completions from directories owned by another user or writable by others.

zsh: no matches foundmacOS

zsh: no matches found: package[extra] (glob pattern not matched)

zsh treats `[ ]`, `*` or `?` in an argument as a glob and fails when nothing matches, unlike bash which passes the text through.

No Xcode or CLTnpm

gyp: No Xcode or CLT version detected!

node-gyp on macOS can’t find the Xcode Command Line Tools to compile native modules.

invalid active developer pathiOS

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun

The Xcode Command Line Tools are missing or broken — typical right after a macOS update.

You have not agreed to the Xcode license agreementsmacOS

macOS: Agreeing to the Xcode/iOS license requires admin privileges, please run "sudo xcodebuild -license" and then retry this command

A new Xcode (or CLT) version needs its license accepted before command-line tools run.

xcode-select: error: tool 'xcodebuild' requires XcodemacOS

macOS: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

A command needs the full Xcode app, but `xcode-select` points to the Command Line Tools only.

Apple could not verify "x" is free of malwaremacOS

macOS: “app” cannot be opened because Apple cannot check it for malicious software / Apple could not verify “app” is free of malware that may harm your Mac

Gatekeeper blocked an app that is not notarized by Apple.

"x" can't be opened because it is from an unidentified developermacOS

macOS: “app” can’t be opened because it is from an unidentified developer

Gatekeeper refuses to open an app that isn't signed with a registered Developer ID.

exec format errorDocker

exec /usr/local/bin/docker-entrypoint.sh: exec format error

The container tried to run a binary built for a different CPU architecture (arm64 vs amd64) — or a script with a broken shebang /…

mach-o file, but is an incompatible architecturemacOS

macOS: dlopen: mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')

A library or binary was built for a different CPU architecture than the process loading it.

dyld: Library not loadedmacOS

macOS: dyld[123]: Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib — Reason: tried: ... (no such file)

A program needs a dynamic library that is missing or was moved/removed (often after a Homebrew upgrade).

command not foundLinux

bash: command not found

The shell can’t find an executable with that name in any directory on your PATH.

illegal option on macOS (date -d, readlink -f, grep -P)macOS

macOS: date: illegal option -- d / readlink: illegal option -- f / grep: invalid option -- P

macOS uses BSD versions of core tools, which lack many GNU flags that Linux scripts rely on.