node.js - Error: failed to connect to [127.0.0.1:27017] at null using MongoDB -


i'm attempting run node application , keep receiving error. not sure start:

events.js:85       throw er; // unhandled 'error' event             ^ error: failed connect [127.0.0.1:27017]     @ null.<anonymous> (/users/dte/limetime-dev/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:557:74)     @ emit (events.js:118:17)     @ null.<anonymous> (/users/dte/limetime-dev/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15)     @ emit (events.js:110:17)     @ socket.<anonymous> (/users/dte/limetime-dev/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10)     @ socket.emit (events.js:107:17)     @ net.js:451:14     @ process._tickdomaincallback (node.js:381:11) 

the error means mongodb not running or running on different port. node app doesn't manage mongodb you. before running app make sure mongodb running on port 27017.


Comments

Popular posts from this blog

java - Incorrect order of records in M-M relationship in hibernate -

ruby - Net::HTTP extremely slow responses for HTTPS requests -

c# - Json write can not be serialized -