问题
I earlier had this issue while installing. Checked with other threads too, but could not able to find a proper solution in my case.
UPDATE :
CLOSED!
回答1:
Uncheck the Install MongoDB Compass option in the setup wizard. Worked for me.
回答2:
unchecking Install MongoDB Compass solves the issue directly from startup wizard while installing in windows10
回答3:
For Windows 10, you will have to install MongoDB Compass separately. After install MongoDB, then download MongoDB Compass separately from here. For MongoDB Compass, make sure to select the correct Version (note: the Community Edition version is not the default version) and Platform to download. It should install successfully.
回答4:
Just ensure you are connected to internet for MongoDB Compass to be installed too,its mongoDb user graphical interface unchecking it blocks you from enjoying graphical interface.
回答5:
For those trying to install version 4.0.x Compass is the problem, but you don't get to untick straight away. According to https://jira.mongodb.org/browse/SERVER-34451 it's a firewall problem. Disable the firewall or allow access fixed it for me.
回答6:
Unchecking the Install MongoDB Compass works for me.
回答7:
If you are using Microsoft Account then solution is to login with local account instead, that is available in account settings.
Once you are logged in with local account, you can complete the installation with local username and password.
来源:https://stackoverflow.com/questions/49721421/mongodb-installation-error-mongodb-setup-wizard-ended-prematurely