I'm setting up my JavaScript mean stack for the first time on Linux Mint and after I enter this command: sudo mongod --dbpath, I'm getting the following error message:
Error parsing command line: required parameter is missing in
dbpath
Everything I've tried doesn't help. Does anybody else face this problem? If so, how do I fix it?
Thanks!
The error explains what's happening, you just need to break it all down:
Error parsing command line:required parameter is missingin 'dbpath'I'm pretty sure you just need to point it to a directory for it to use.
If you look at the documentation (or run mongod --help) you will see that you need to provide the path to your db after the --dbpath command:
--dbpath <path>
Default: /data/db on Linux and OS X, \data\db on Windows
The directory where the mongod instance stores its data.
More info here: https://docs.mongodb.org/manual/reference/program/mongod/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With