brew install --cask git-credential-manager-core fails
After running
brew tap microsoft/git
brew install --cask git-credential-manager-core
I receive the following error:
==> Running installer for git-credential-manager-core; your password may be nece
Package installers may write to any location; options such as `--appdir` are ignored.
installer: Package name is Git Credential Manager Core
installer: Installing at base path /
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “gcmcore-osx-2.0.605.12951.pkg”.)
==> Purging files for version 2.0.605.12951 of Cask git-credential-manager-core
Error: Failure while executing; `/usr/bin/sudo -E -- /usr/bin/env LOGNAME=myUser USER=myUser USERNAME=myUser /usr/sbin/installer -pkg /usr/local/Caskroom/git-credential-manager-core/2.0.605.12951/gcmcore-osx-2.0.605.12951.pkg -target / -allowUntrusted` exited with 1. Here's the output:
installer: Package name is Git Credential Manager Core
installer: Installing at base path /
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “gcmcore-osx-2.0.605.12951.pkg”.)
I have also attempted to install the package through the .pkg file on the releases page, but I also receive an error that prevents it from installing.
I'm running into this as well.
The last package that actually installs for me is 2.0.498; I kept going backwards from current, and that was the first that worked. I haven't looked to see what changed in the installation scripts, but it appears to be something towards the tail end. I'm on macOS 11.6.2.
Are you running on a new M1 Mac or an Intel Mac? There is a known issue at the moment installing/upgrading GCM on M1 Macs via Homebrew: https://github.com/GitCredentialManager/git-credential-manager/issues/574
Running into this on MacBook pro 2015 Big Sur 11.6
Update:
After upgrading and updating xcode the gcm was installed with no hiccups.
@FarisCS - glad you're unblocked. When you say upgrading, do you mean upgrading your OS?
Yes the OS. But I suspect it had something to do with xcode since running brew doctor gave me a warning about xcode version being (unknown) and outdated
Got it. I'm going to close this issue given updating XCode (and potentially the OS as well) mitigates it. If others who replied update and it still persists, please feel free to re-open.
nvm the installer returned the same error after manually approved from Settings. But I did found the error in console

Same hear
Running into this on MacBook pro 2015 Big Sur 11.6
Update:
After upgrading and updating xcode the gcm was installed with no hiccups.
That did for me as well!
Using a:
- Mac Mini 2020
- M1
- macOS Ventura 13.5.1