在无法点击 mongodb/brew 的 M1 Apple Chip 上安装 mongodb:点击中的语法无效
Installing mongodb on M1 Apple Chip with cannot tap mongodb/brew: invalid syntax in tap
运行 命令brew tap mongodb/brew: i 运行 进入下面。
我运行变成了下面的:
错误:无效的公式:/opt/homebrew/Library/Taps/mongodb/homebrew-brew/Formula/mongocli.rb
公式至少需要一个URL
错误:无法点击 mongodb/brew:点击中的语法无效!
我的解决方案:
转到 Finder > 实用程序并右键单击终端和select“获取信息”
找到“使用 Rosetta 打开”选项并勾选。
打开新终端
运行
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
- 运行
"brew tap mongodb/brew"
完成后关闭终端并取消选中“使用 Rosetta 打开”。
- 再次打开终端然后运行
brew install mongodb-community@4.4
.
这对我不起作用,所以我尝试了这个:
- 然后 运行 这个:
arch -arm64 brew install mongodb-community@4.4
它奏效了。
我建议您找到适合自己的那个。
感谢这些文章。
- How to install Mongodb on Apple M1 chip
- https://brew.sh/
转到 Finder > 实用程序并右键单击终端和select“获取信息”找到选项“使用 Rosetta 打开”并选中它。
打开新的终端和运行“brew tap mongodb/brew”完成后关闭终端并取消选中“使用Rosetta打开”,再次打开终端然后运行“brew install mongodb-community@4.4".
运行 命令brew tap mongodb/brew: i 运行 进入下面。 我运行变成了下面的:
错误:无效的公式:/opt/homebrew/Library/Taps/mongodb/homebrew-brew/Formula/mongocli.rb
公式至少需要一个URL
错误:无法点击 mongodb/brew:点击中的语法无效!
我的解决方案:
转到 Finder > 实用程序并右键单击终端和select“获取信息”
找到“使用 Rosetta 打开”选项并勾选。
打开新终端 运行
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
- 运行
"brew tap mongodb/brew"
完成后关闭终端并取消选中“使用 Rosetta 打开”。
- 再次打开终端然后运行
brew install mongodb-community@4.4
.
这对我不起作用,所以我尝试了这个:
- 然后 运行 这个:
arch -arm64 brew install mongodb-community@4.4
它奏效了。
我建议您找到适合自己的那个。 感谢这些文章。
- How to install Mongodb on Apple M1 chip
- https://brew.sh/
转到 Finder > 实用程序并右键单击终端和select“获取信息”找到选项“使用 Rosetta 打开”并选中它。
打开新的终端和运行“brew tap mongodb/brew”完成后关闭终端并取消选中“使用Rosetta打开”,再次打开终端然后运行“brew install mongodb-community@4.4".