title: MongoDB not working. "ERROR: dbpath (/data/db) does not exist."
body: <p>I'm getting the following error when I try to run "mongod" in the terminal. I've tried uninstalling, reinstalling, and restarting the machine. Any suggestions on how to get it working would be amazing.</p>
  
  <p>ERROR: </p>
  
  <pre><code>dbpath (/data/db) does not exist.
   Create this directory or give existing directory in --dbpath.
   See http://dochub.mongodb.org/core/startingandstoppingmongo
  </code></pre>
  
  <p>Side note:
  Node also stopped working on my machine around the same time that I got this error. </p>
  
  <pre><code>events.js:72
          throw er; // Unhandled 'error' event
                ^
  Error: failed to connect to [localhost:27017]
  </code></pre>
  
  <p>Any help would be much appreciated!</p>