I’ve an issue while installing MongoDB in my Mac m1chip 2020.
brew services start mongodb-community
and got error:
Permission denied @ rb_sysopen - /Users/pg/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist
I try to fixed by:
sudo chown $(whoami) ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist
but this is return:
chown: /Users/pg/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist: No such file or directory
can anyone please help me with this.