Hi Chris
I’ve tried uninstalling and reinstalling mongo, using both version 5.0 and 6.0 but the error remains the same. Is there a way for me to run the mongo shell locally on my mac terminal?
You are running the shell, it is giving an error because there is no server to connect to. mongosh is like mysql, psql, sqlplus it is a client, it needs a server to connect to.
You need an Atlas cluster or a local server to get started.
after facing this question, I come across this thread and I found no way to solve my question. yet I have tried to search until come to know how to solve this, below is my way let me know if it works for you too:
first start the mongodb by using this command into the terminal:
service mongod start
then run:
mongosh
from here you will be able to proceed. Thank you !