Can't launch mongo shell (In macOS 10.15 Catalina)

I’ve highlighted the main points:

  1. mongod didn’t startup because the default directory “/data/db” doesn’t exist. You need to create it beforehand.
  2. mongo failed to connect because of #1