Error: key not found: "ruby_source_path" for most brew commands #5337
Replies: 1 comment · 6 replies
-
Your mirror is outdated:
Either update your mirror or switch back to the official GitHub repo. |
Beta Was this translation helpful? Give feedback.
All reactions
-
What's the output of running this: brew ruby <<RUBY
api_json = JSON.parse((HOMEBREW_CACHE/"api/formula.jws.json").read)
payload = JSON.parse(api_json["payload"])
puts JSON.pretty_generate(payload.find { |entry| entry["name"] == "git" })
RUBY ? |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Beta Was this translation helpful? Give feedback.
All reactions
-
It looks like your mirror for the Homebrew JSON API is broken/outdated. Do unset HOMEBREW_API_DOMAIN
rm -rf "$(brew --cache)/api"
brew update then try again. |
Beta Was this translation helpful? Give feedback.
All reactions
-
thanks again!
|
Beta Was this translation helpful? Give feedback.
All reactions
-
This seems to be a mirror issue and not a Homebrew issue, so I can't help with that. Sorry! |
Beta Was this translation helpful? Give feedback.
-
Output of
brew config
Output of
brew doctor
Description of issue
The same error as in the
brew doctor
output also occurs for most other commands, e.g.Not sure how that happened and how to continue, appreciate any hints.
Beta Was this translation helpful? Give feedback.
All reactions