mongocli是否支持AppleM1芯片的公式URL?

按照安装说明,运行时:

brew tap mongodb/brew

我收到以下错误:

Error: Invalid formula: /opt/homebrew/Library/Taps/mongodb/homebrew-brew/Formula/mongocli.rb

formulae require at least a URL

Error: Cannot tap mongodb/brew: invalid syntax in tap!

我确实遵守先决条件(更新xcodebrew)。我确保运行brew updatebrew doctor

在这一点上,我在 mongodb/homebrew-brew repo 上寻找答案,并看到了mongocli 的最近提交。

显然,它定义了具有 Intel 芯片但没有提及 Apple M1 芯片的 Mac 和 Linux 机器的 URL。目前这阻止了我点击 mongodb。你知道任何解决方法还是我在某个地方犯了错误?

回答

刚遇到同样的问题...

转到 Finder > Utilities 并右键单击终端并选择“获取信息”找到选项“使用 Rosetta 打开”并选中它。

打开新终端并运行“brew tap mongodb/brew” 完成后关闭终端并取消选中“使用 Rosetta 打开”,再次打开终端,然后运行“brew install mongodb-community@4.4”。

这对我有用,并且安装了 MongoDB。

  • Thanks a lot, that worked. Your answer allowed me to tap mongodb and then install it by avoiding the lack of a formula URL for the mongocli on Apple M1 chips.

以上是mongocli是否支持AppleM1芯片的公式URL?的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>