跳至内容

Windows

在 Windows 上安装 Meteor 遇到问题

无法启动 Mongo 服务器

如果您在运行 meteor 时嵌入的 MongoDB 无法启动,并且您看到类似以下的消息

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 测试环境中查看我们正在使用的版本 此处

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

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

安装 vc_redist.x64 后,您应该能够在没有问题的情况下运行 Meteor 和 MongoDB 服务器。