Catur Hidayat Posted on Feb 22, 2018 • Edited on Jun 17, 2022 [SOLVE] "MongoDB - command not found: mongo" #mongodb #javascipt #node #help Hi Everyone i am new in JS & mongodb. i tried to install mongodb for global on my mac. but I have a problem. "mongod" command is works but when I try "mongo" command, it can not work. Please help mongodb #javascript #nodejs Top comments (4) Subscribe Submit Preview Dismiss Collapse Expand Andy Zhao (he/him) Andy Zhao (he/him) Andy Zhao (he/him) Follow uh oh where'd my bio go! Education Actualize Coding Bootcamp Joined Mar 28, 2017 • Feb 22 '18 • Edited on Feb 22 • Edited Dropdown menu Copy link Hide Pretty hard to debug this without seeing your full history of installation, but you might need to restart your terminal. Were you following their tutorial? docs.mongodb.com/manual/tutorial/i... Also maybe try a new tab instead of a new window? Collapse Expand Catur Hidayat Catur Hidayat Catur Hidayat Follow Email catur@windowslive.com Location Bekasi, Indonesia Joined Jul 2, 2017 • Feb 22 '18 Dropdown menu Copy link Hide Hai @andy Zhao, I follow the instructions from the link below. medium.com/@peaonunes/how-to-insta... After I restart the terminal, the command "mongod" or "mongo" becomes not working at all. Collapse Expand Clemspring Clemspring Clemspring Follow Joined Apr 4, 2018 • Apr 4 '18 Dropdown menu Copy link Hide Replace : mongod --> ./mongod mongo -->./mongo Please tell me if it was helpful to you. Collapse Expand Catur Hidayat Catur Hidayat Catur Hidayat Follow Email catur@windowslive.com Location Bekasi, Indonesia Joined Jul 2, 2017 • Apr 7 '18 • Edited on Jun 17 • Edited Dropdown menu Copy link Hide thanks for the advice, I've tried to re-install, and now it's ok. .. [SOLVE] Code of Conduct • Report abuse
Top comments (4)
Pretty hard to debug this without seeing your full history of installation, but you might need to restart your terminal.
Were you following their tutorial?
docs.mongodb.com/manual/tutorial/i...
Also maybe try a new tab instead of a new window?
Hai @andy Zhao, I follow the instructions from the link below.
medium.com/@peaonunes/how-to-insta...
After I restart the terminal, the command "mongod" or "mongo" becomes not working at all.
Replace :
mongod --> ./mongod
mongo -->./mongo
Please tell me if it was helpful to you.
thanks for the advice, I've tried to re-install,
and now it's ok. .. [SOLVE]