Mint: Install directory does not have write permissions when installing via brew


~/dev/projects/danger/peril add_auth_api
❯ brew tap yonaskolb/mint https://github.com/yonaskolb/mint.git
Updating Homebrew...
==> Tapping yonaskolb/mint
Cloning into '/usr/local/Homebrew/Library/Taps/yonaskolb/homebrew-mint'...
remote: Counting objects: 22, done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 22 (delta 0), reused 20 (delta 0), pack-reused 0
Unpacking objects: 100% (22/22), done.
Tapped 1 formula (58 files, 56.6KB)

~/dev/projects/danger/peril add_auth_api 13s
❯ brew install mint
==> Installing mint from yonaskolb/mint
==> Downloading https://github.com/yonaskolb/Mint/archive/0.3.0.tar.gz
==> Downloading from https://codeload.github.com/yonaskolb/Mint/tar.gz/0.3.0
######################################################################## 100.0%
==> make install PREFIX=/usr/local/Cellar/mint/0.3.0
🍺  /usr/local/Cellar/mint/0.3.0: 4 files, 10.6MB, built in 53 seconds

~/dev/projects/danger/peril add_auth_api
❯ mint install danger/danger-swift
🌱  Error: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “github.com_danger_danger-swift” in the folder “packages”." UserInfo={NSFilePath=/usr/local/mint/packages/github.com_danger_danger-swift, NSUnderlyingError=0x7fd4e9501f00 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (17 by maintainers)

Most upvoted comments

I’ve update to High Sierra and can confirm the issue. I’ve added the following to the readme. That should work for you. If you can think of a better solution let me know 👍


⚠️ High Sierra

If you are running High Sierra your permissions to /usr/local may have changed and you will need to run the following commands before installing Mint:

$ sudo mkdir /usr/local/mint
$ sudo chown -R $(whoami) /usr/local/mint

This is required so Mint can write to the /usr/local/mint directory to download and cache your builds