Mongoose Connection

后端 未结 5 755
长情又很酷
长情又很酷 2020-12-09 09:31

I read the quick start from the Mongoose website and I almost copy the code, but I cannot connect the MongoDB using Node.js.

var mongoose = require(\'mongoos         


        
5条回答
  •  难免孤独
    2020-12-09 10:11

    I had the same error popping up. Then I found out that I didn't have a mongod running and listening for connections. To do that you just need to open another command prompt (cmd) and run mongod

提交回复
热议问题