How to create /etc/exports in Mojave
I just had a similar issue and resolved it by:


going to System Preferences > Security &amp; Privacy > Privacy.
Click the "lock" icon to make changes.
Scroll down the list on the left-hand side and select "Full Disk Access"
Click the "+" icon on the right and select the Terminal app (or in
my case iTerm)


You'll now be prompted to close the app if it's already open, restart it, and on next run you'll be asked if you want to allow the app to make changes - grant the permissions and you should be back up and running.