【发布时间】:2014-06-08 00:27:11
【问题描述】:
我在我的 Windows 8 环境中为 Meteor 0.8.1.3 安装了最新的“望远镜”项目(已经安装在 Windows 中)。请注意,最新的“望远镜”项目确实支持 Meteor 0.8。
我确实克隆了其软件包的所有相关 git 存储库。
当我运行应用程序(通过“meteor run”)时,一切似乎都构建好了,但是在“Started MongoDB”消息之后出现以下错误(并且每隔几秒钟重复一次):
=> Started proxy.
=> Started MongoDB.
W20140608-02:12:51.171(3)? (STDERR)
W20140608-02:12:51.172(3)? (STDERR)
C:\Users\nm2arch\AppData\Local\.meteor\tools\edf8981bb6\lib\node_modules\fibere.js:173
W20140608-02:12:51.173(3)? (STDERR) throw(ex);
W20140608-02:12:51.175(3)? (STDERR) ^
W20140608-02:12:51.176(3)? (STDERR) ReferenceError: window is not defined
W20140608-02:12:51.181(3)? (STDERR) at a.lang.months (packages/momentjs/moment\min\langs.min.js:1)
W20140608-02:12:51.182(3)? (STDERR) at moment (packages/momentjs/moment\min\langs.min.js:1)
W20140608-02:12:51.183(3)? (STDERR) at packages/momentjs.js:45:4
W20140608-02:12:51.184(3)? (STDERR) at packages/momentjs.js:73:3
W20140608-02:12:51.184(3)? (STDERR) at C:\work\telescope\.meteor\local\build\programs\server\boot.js:185
W20140608-02:12:51.185(3)? (STDERR) at Array.forEach (native)
W20140608-02:12:51.186(3)? (STDERR) at Function._.each._.forEach(C:\Users\nm2arch\AppData\Local\.meteor\tool81bb6\lib\node_modules\underscore\underscore.js:79:11)
W20140608-02:12:51.187(3)? (STDERR) at C:\work\telescope\.meteor\local\build\programs\server\boot.js:102
=> Exited with code: 8
=> Started proxy.
=> Started MongoDB.
W20140608-02:12:51.171(3)? (STDERR)
W20140608-02:12:51.172(3)? (STDERR)
C:\Users\nm2arch\AppData\Local\.meteor\tools\edf8981bb6\lib\node_modules\fibere.js:173
W20140608-02:12:51.173(3)? (STDERR) throw(ex);
W20140608-02:12:51.175(3)? (STDERR) ^
W20140608-02:12:51.176(3)? (STDERR) ReferenceError: window is not defined
W20140608-02:12:51.181(3)? (STDERR) at a.lang.months (packages/momentjs/moment\min\langs.min.js:1)
W20140608-02:12:51.182(3)? (STDERR) at moment (packages/momentjs/moment\min\langs.min.js:1)
W20140608-02:12:51.183(3)? (STDERR) at packages/momentjs.js:45:4
W20140608-02:12:51.184(3)? (STDERR) at packages/momentjs.js:73:3
W20140608-02:12:51.184(3)? (STDERR) at C:\work\telescope\.meteor\local\build\programs\server\boot.js:185
W20140608-02:12:51.185(3)? (STDERR) at Array.forEach (native)
W20140608-02:12:51.186(3)? (STDERR) at Function._.each._.forEach(C:\Users\nm2arch\AppData\Local\.meteor\tool81bb6\lib\node_modules\underscore\underscore.js:79:11)
W20140608-02:12:51.187(3)? (STDERR) at C:\work\telescope\.meteor\local\build\programs\server\boot.js:102
=> Exited with code: 8
(...而且上面的模式重复了好几次...)
当然,“localhost:3000”没有任何反应,因为应用程序运行不正常。
我不知道还需要做什么才能让某人在 Windows 环境中使用 Meteor 运行 Telescope 项目(截至 2014 年 6 月)。
我相信其他用户在使用 Meteor 项目和 Windows 时会遇到类似的问题(不一定完全相同),因此最好在这里找到解决方案(至少对于这些特定问题)。
谢谢!
【问题讨论】:
-
我推荐使用 Vagrant 在 Windows 上运行流星。见gist.github.com/gabrielhpugliese/5855677
-
谢谢你,alanfie,如果我使用 Vagrant 选项,我可以在 Windows 的 WebStorm 中开发我的 Meteor 应用程序而没有更多麻烦吗?我觉得我必须小心很多事情(版本控制等?)。
标签: windows node.js mongodb meteor