MongoError: failed to connect to server [localhost:27017] on first connect

后端 未结 3 1979
一生所求
一生所求 2021-02-02 12:14

I have paid a membership and downloaded this project. After npm install and node app.js, it returns the following error:

Does anyone know what\

3条回答
  •  鱼传尺愫
    2021-02-02 12:49

    First open another terminal an run command mongod to start your mongoDB

    Then again start you node server npm start or if you have "nodemon" then using nodemon

    I think now everything will be fine it will show

    Mongoose connected to mongodb://localhost/your_database
    

提交回复
热议问题