简体   繁体   English

无法在Windows的Meteor上运行“ meteor mongo”(Windows exe引导程序的最新流星)

[英]Can't run “meteor mongo” on Meteor in Windows (latest meteor for windows exe bootstrapper)

I am trying to run a meteor app for the first time on Windows( using Windows 7 in particular). 我正在尝试在Windows上首次运行流星应用程序(特别是使用Windows 7)。 I am able to successfully run the app but i can't seem to be able to run the command meteor mongo in a separate command prompt window. 我能够成功运行该应用程序,但似乎无法在单独的命令提示符窗口中运行meteor mongo命令。 The following error pops up: 弹出以下错误:

mongo: Meteor isn't running. mongo:流星没有运行。

This command only works while Meteor is locally. 仅当Meteor在本地时,此命令才有效。 Start your application first. 首先启动您的应用程序。

I have already tried meteor reset. 我已经尝试过流星重置。 How can i fix this? 我怎样才能解决这个问题?

I think there is possible a misconception about what the meteor mongo command does. 我认为对meteor mongo命令的作用可能有误解。 It only connects to the mongo instance of a running meteor development process. 它仅连接到正在运行的流星开发过程的mongo实例。

So you need to start the meteor app by changing to your app's directory and running 'meteor'. 因此,您需要通过更改应用程序的目录并运行“ meteor”来启动流星应用程序。 Then on a different console window, change you the same directory and run 'meteor mongo'. 然后在另一个控制台窗口上,更改您的相同目录并运行“ meteor mongo”。

In the image below, when meteor isn't running I get the error you get, but you will note that it says that you have to start your application first. 在下图中,当流星未运行时,我会收到错误消息,但是您会注意到它指出必须首先启动应用程序。 If you do that, and then in another console window it works: 如果执行此操作,然后在另一个控制台窗口中运行:

在此处输入图片说明

Try one of these admin UIs for mongo instead. 尝试之一,这些对蒙戈管理用户界面来代替。 They connect directly to the db, so should overcome whatever problem there is with command line. 它们直接连接到数据库,因此应克服命令行存在的任何问题。

Alternatively, you may try a non-standard command line utility, like Cygwin. 或者,您可以尝试使用非标准的命令行实用程序,例如Cygwin。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM