how to run mongo export on macbook?
You have to import MongoDB tools via .
Download, unzip, and use the export path and run the command below on the terminal and try the export command again.
export PATH=$PATH:inputmongodbtoolpath

If you already use brew, you can try with it.
brew install mongodb-community
brew services start mongodb-community