关于这台 Mac: Apple M1 macOS Big Sur 版本 11.6
自制版本:
some@some ~ % brew -v
Homebrew 3.3.0
Homebrew/homebrew-core (git revision fdd4c67dbc1; last commit 2021-10-25)
警告:
some@some ~ % brew tap mongodb/brew
==> Tapping mongodb/brew
Cloning into '/opt/homebrew/Library/Taps/mongodb/homebrew-brew'...
remote: Enumerating objects: 760, done.
remote: Counting objects: 100% (257/257), done.
remote: Compressing objects: 100% (184/184), done.
remote: Total 760 (delta 119), reused 127 (delta 70), pack-reused 503
Receiving objects: 100% (760/760), 167.21 KiB | 1.40 MiB/s, done.
Resolving deltas: 100% (357/357), done.
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the mongodb/brew tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/mongodb/homebrew-brew/Formula/mongodb-community.rb:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the mongodb/brew tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/mongodb/homebrew-brew/Formula/mongodb-database-tools.rb:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the mongodb/brew tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/mongodb/homebrew-brew/Formula/[email protected]:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the mongodb/brew tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/mongodb/homebrew-brew/Formula/[email protected]:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the mongodb/brew tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/mongodb/homebrew-brew/Formula/[email protected]:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the mongodb/brew tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/mongodb/homebrew-brew/Formula/[email protected]:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the mongodb/brew tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/mongodb/homebrew-brew/Formula/[email protected]:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the mongodb/brew tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/mongodb/homebrew-brew/Formula/mongodb-community-shell.rb:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the mongodb/brew tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/mongodb/homebrew-brew/Formula/[email protected]:10
Tapped 14 formulae (30 files, 231.1KB).
为什么我会收到这些警告?
如何解决这些警告?
我遇到了类似的问题 我重新安装了
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
然后我按 RETURN 继续 然后我运行这个命令:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
我可以运行这个之后:
brew install [email protected]
并用于运行 MongoDB
brew services start mongodb/brew/mongodb-community
之后我可以连接到我的数据库。
当我想停止 MongoDB 时
brew services stop mongodb/brew/mongodb-community
我有一个问题要问你,如果你在 Mac 上使用 MongoDB 社区版本,你必须通过 cmd 在本地启动服务器才能连接到 MongoDB 服务器,那么你如何在系统之外使用该项目。
实际上我面临着同样的问题,我已经制作了一个项目并将其部署在前端和后端的 vercel 上,当我在系统外部使用实时链接时,它不起作用。