Mean.IO Stack - Error Connecting to the database: {[MongoError: connect ECONNREFUSED 127.0.0.1:27017]

I am setting up Mean.IO on my Mac OS X El Capitan Machine. I got Mean.IO successfully, but when it asks me to set up an administrator, it causes the following error:

#############################################

  Congratulations you have mean.io installed.

Before you install the dependencies and fire up the server we can help you with setting up your first admin user.
? Please provide your username so we can create your first admin user: **********
    Error Connecting to database: { [MongoError: connect ECONNREFUSED 127.0.0.1:27017]
  name: 'MongoError',
  message: 'connect ECONNREFUSED 127.0.0.1:27017' }
*******-MBP-2:~ **********$

I had no experience setting up this stack before, so I'm not sure why Mongo is acting. Thanks for the help!

+4
source share
2 answers

The application cannot connect to the MongoDB database because the database server is down. You can open another terminal window and start the server with:

sudo mongod
+1
source

@ user1072337

, node.js rest api mongodb (mlab)

, , Wi-Fi

. .

0

Source: https://habr.com/ru/post/1625011/


All Articles