mac是上按照官网步骤使用brew安装mongo,提示No available formula with the name "mongodb-community".

报错的原因就出现在brew tap mongodb/brew命令没执行成功. 最开始我执行该命令,没有任何报错或输出,我以为执行成功(其实没有成功).接着执行brew install mongodb-community就报如上错.
注意brew tap mongodb/brew执行成功会有类似如下输出:
企业微信截图_01019f29-0c17-4ee9-bcef-4e7ec080ae3c.png
解决办法:若你像我一样执行没有任何报错或者输出,可能是brew源的问题. 博主是通过换成中科大镜像源才成功的(看网上评论中科大源比较全). 换源教程看这篇:https://blog.nice100.net/default/128.html

换源后再执行brew tap mongodb/brewbrew install mongodb-community

标签: none

添加新评论