0
Я побежал node server.js
в корневой директории моего проекта:
И это ошибка, которую я получил:Node.js проблема с MongoDB
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
The magic happens on port 8080
events.js:72
throw er; // Unhandled 'error' event
^
Error: failed to connect to [your_database_here:27017]
at null.<anonymous> (/home/ajay/Desktop/easy-node-authentication-facebook/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:549:74)
at emit (events.js:106:17)
at null.<anonymous> (/home/ajay/Desktop/easy-node-authentication-facebook/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:150:15)
at emit (events.js:98:17)
at Socket.<anonymous> (/home/ajay/Desktop/easy-node-authentication-facebook/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:533:10)
at Socket.emit (events.js:95:17)
at net.js:833:16
at process._tickCallback (node.js:419:13)
Я установил mongodb
и когда я открываю localhost:27017
в браузере, он говорит It looks like you are trying to access MongoDB over HTTP on the native driver port.
. Где именно ошибка?
Это сработало, спасибо. – qwertymaster