Error: couldn't connect to server 127.0.0.1:27017

I’ve just read that this issue is common for macOS Catalina users because

The new MacOS 10.5 does not allow you, by default to create new volumes in the / subsystem and if you do, they will be deleted on restart.

So /data/db can’t be created during installation’s process.

1 Like