Closed DanielLaudisa95 closed 7 months ago
Hi @DanielLaudisa95,
This is expected behaviour since the mongo
shell was removed from upstream MongoDB 6.0+ packages and replaced by the new MongoDB Shell (mongosh
) which is a separate installation with more dependencies (including Node.js): https://www.mongodb.com/try/download/shell.
Since mongosh
is compatible with a broad range of server versions (currently 4.2+), there shouldn't be a common need to have multiple versions installed.
In your workaround steps, instead of copying the mongosh
binary it would be better to ensure /usr/bin
(or the install location for mongosh
) is in your $PATH
variable.
m
should also provide a hint about mongosh
when installing 6.0+, but I will add mention of brew install mongosh
for macOS users.
Cheers, Stennie
Good afternoon community, There is a problem in the code of 'm' for all OSs with MongoDB version 6.0+. Indeed, mongo/mongoshell doesn't work because it is not pulled in from repositories. So I post my solution which is valid for all Linux/Unix/MacOS system:
I hope this will help all you.