Search code examples
mongodbmongodb-querystrapi

strapi start command not working


I want to start strapi cms in the browser but Tells me :

Make sure your MongoDB database is running

In the event MongoDB is running

How can I solve this problem?

Mongod & mongo is running


Solution

  • Go to your project file. go to the config/environments/development folder and click on database.json. for username and password you leave it empty. and host you put 127.0.0.1 port: 27017 as in the picture

    enter image description here

    if you have finished the modifications you open two terminal: on the first you start mongoDB by doing:

    mongod

    and once mongoDB has started you start on the other console strapi by making:

    strapi start or npm start