Skip to content

Windows

在 Windows 上安装 Meteor 时遇到问题

¥Trouble installing Meteor on Windows

无法启动 Mongo 服务器

¥Can't start Mongo server

如果你在运行 meteor 时嵌入的 MongoDB 未启动,并且你看到如下消息:

¥If your embed MongoDB is not starting when you run meteor and you see messages like these:

shell
C:\Users\user\app> meteor
=> Started proxy.
Unexpected mongo exit code 3221225781. Restarting.
Unexpected mongo exit code 3221225781. Restarting.
Unexpected mongo exit code 3221225781. Restarting.
Can't start Mongo server.

你需要安装 Visual C++ Redistributable for Visual Studio,具体取决于你的 Windows 和 Meteor 嵌入的 MongoDB 版本,Visual Studio 的版本可能会有所不同。你可以查看我们在 Windows 测试环境中使用的版本 此处

¥You probably need to install Visual C++ Redistributable for Visual Studio, depending on your Windows and Meteor embbeded version of MongoDB the version of Visual Studio could be different. You can check the version that we are using in our Windows test environment here

从 MongoDB 4.4.4 开始,我们开始使用 Visual Studio 2019。

¥Starting from MongoDB 4.4.4 we started to use Visual Studio 2019.

直到 MongoDB 4.2,this 通常是要安装的正确版本。

¥Until MongoDB 4.2 this was the usually the right version to be installed.

安装 vc_redist.x64 后,你应该能够毫无问题地运行 Meteor 和 MongoDB 服务器。

¥After installing vc_redist.x64 you should be able to run Meteor and MongoDB server without problems.