git-credential-manager icon indicating copy to clipboard operation
git-credential-manager copied to clipboard

brew install --cask git-credential-manager-core fails

Open kyrichen55 opened this issue 4 years ago • 10 comments

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.

kyrichen55 avatar Dec 27 '21 22:12 kyrichen55

I'm running into this as well.

c4milo avatar Jan 10 '22 22:01 c4milo

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.

spoilsportmotors avatar Jan 11 '22 16:01 spoilsportmotors

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

mjcheetham avatar Mar 16 '22 22:03 mjcheetham

Running into this on MacBook pro 2015 Big Sur 11.6

Update:

After upgrading and updating xcode the gcm was installed with no hiccups.

FarisSquared avatar Mar 20 '22 12:03 FarisSquared

@FarisCS - glad you're unblocked. When you say upgrading, do you mean upgrading your OS?

ldennington avatar Mar 24 '22 16:03 ldennington

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

FarisSquared avatar Mar 24 '22 16:03 FarisSquared

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.

ldennington avatar Mar 24 '22 16:03 ldennington

nvm the installer returned the same error after manually approved from Settings. But I did found the error in console Screen Shot 2022-04-22 at 5 10 35 PM

jankytay avatar Apr 22 '22 09:04 jankytay

Same hear

Dayday10 avatar Jul 25 '23 14:07 Dayday10

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

lsp85 avatar Sep 16 '23 21:09 lsp85