Search code examples
mongodb

Why am i getting this error when trying to install mongoDB?


Error: No such file or directory - /usr/local/var/homebrew/linked/mongodb-community

I am trying to install MongoDB community but I keep getting this error where it gives me an error saying I don't have a directory named mongodb-community when such a directory already exists.


Solution

  • Just in case someone else ran into the same problem:

    Solution i: sudo brew services start mongodb-community

    Solution ii: cd Desktop mkdir dbs cd dbs mongod --dbpath .