mongoDB error: Error: failed to connect to [localhost:27017] -
i'm trying install habitrpg locally keep getting mongodb error after typing node src/seed.js : error: failed connect [localhost:27017] i saw on other questions same error people have suggested typing in 'mongod' , fixes creating local server. error: -bash: mongod: command not found can't figure out what's wrong. ideas? open cmd (in windows) or terminal (in ubuntu). type command >cd path_for_mongodb_bin_folder cd c:\program files\mongodb\server\3.2\bin for ubuntu command same : cd /home/mongodb/server/3.2/bin then type command >mongod --dbpath path_for_data_folder mongod --dbpath c:\data\db for ubuntu command : ./mongod --dbpath /home/data/db you can specify folder data folder. wait till cmd or terminal shows "waiting connections" 2016-09-01t21:38:33.170+0530 network [initandlisten] waiting connections on port 27017 then open new cmd or terminal window. type command >cd pat...