New to MongoDB. I'm following this tutorial, and I get the above error when trying to follow Step 2. I'm putting the command into a Windows Command Prompt, and I've set my directory to the location of the 'mongoimport' file (C:\MongoDB). I've also included the same directory in my PATH, and the primer-dataset.json file is saved in that location. I'm fairly confident MongoDB is installed properly.
This error message means that there is no PATH in your system for mongodb server folder. Follow these steps (for Windows OS):
C:\Program Files\MongoDB\Server\[your_server_version]\bin
.semicolon
in front of the path to separate this new path for the others.
Like this ;C:\Program Files\MongoDB\Server\4.0\bin
.