説明
I have a METEOR@2.14 project running and would like to open the mongodb shell (to check the Mongodb version).
OS: Linux mint cinnamon
According to the docs for Meteor 2.14, I should open a second terminal window, navigate to my project and then run:
meteor mongo
What is
When I run this command, I see the following error:
Some error occured while trying to run mongosh.
Check bellow for some more info:
Since version v5.0.5 the mongo shell has been superseded by the mongosh
below there is the url to use with mongosh
$ mongosh mongodb://127.0.0.1:3001/meteor
The 'mongosh' command line tool was not found in your PATH.
According to the Meteor 2.11 migration guide, I should be able to use mongosh instead, but when I run:
mongosh
I see an error:
bash: mongosh: command not found
What should be
The docs should explain how to run the mongo shell.
- the Meteor 2.14 user guide should not say to use
meteor mongo - the migration guide should explain what to do
Update: after some investigation, I found that mongo shell needs to be installed separately, which is unexpected for a long-term Meteor user because I'm so used to everything in Meteor "just working" and the install / upgrade processes being so smooth.
After installing mongo shell, this works:
mongosh mongodb://127.0.0.1:3001/meteor
It would be super helpful if the migration guide pointed out that you need to install mongo shell, because this wasn't obvious to me.