We provide complete mobile and web apps development solutions

Showing posts with label running with Default port instead of '27017'. Show all posts
Showing posts with label running with Default port instead of '27017'. Show all posts

Monday, September 7, 2015

TypeError: Cannot read property 'DEFAULT_PORT' of undefined

TypeError: Cannot read property 'DEFAULT_PORT' of undefined

This issue is due to running with Default port instead of '27017'.

Change from 

module.exports = new Db(settings.db, new Server(settings.host, Connection.DEFAULT_PORT), {safe: true});


To


module.exports = new Db(settings.db, new Server(settings.host, '27017'), {safe: true});



Online Training

Your Name :
Your Email: (required)
Your Message: (required)

Powered by Blogger.

Recent Posts

Find Us On Facebook

Popular Posts