【问题标题】:How to install Meteorite for windows?如何为 Windows 安装 Meteorite?
【发布时间】:2014-01-23 20:18:06
【问题描述】:

如何在windows下安装Meteroite?我是Meteor的新手。我尝试安装Router但在安装Router之前我知道它首先必须安装Meteorite。但Meteorite安装仅适用于Linux and ios。所以有没有可能在Windows 中安装Meteorite

【问题讨论】:

    标签: meteor meteorite


    【解决方案1】:

    截至本文发布时,Meteorite 不适用于 Windows。

    您仍然可以在您的应用中安装这些软件包。

    1) 你会去大气.meteor.com 找到你想要的包,例如 Iron-router

    2) 查找存储库的 git,对于 iron-router 其 https://github.com/EventedMind/iron-router.git

    3) 在您的流星应用程序中创建一个名为 packages 的文件夹(如果它尚不存在)。

    4) git clone 仓库到包目录,即 git clone https://github.com/EventedMind/iron-router

    5) 重命名文件夹,使其成为包名 iron-router 保持不变,但某些包将被克隆为不同的文件夹名称,即 meteor-analytics 必须重命名为 analytics

    6) 在项目根目录中使用meteor add iron-router 将你的包添加到meteor。

    【讨论】:

    • 这对我不起作用,我正在尝试添加 topojson (atmospherejs.com/mrt/topojson, github.com/vsivsi/meteor-topojson) 但我不确定它是否是正确的 git repo...
    • 这帮助了我。我知道 mrt 的功能已经被添加到 Windows 版本中。但是,我们正在为我们的一些包使用私有仓库,并且流星内置不适用于这些私有仓库。所以,这很有帮助。
    【解决方案2】:

    正式地,Meteor 和 Meteorite 还不能用于 Windows。您可以在http://win.meteor.com/ 尝试使用非官方的 Windows 包流星。但是陨石没有这样的等价物。

    如果您喜欢使用 Windows,我建议您使用 Linux 的 VMware 映像在 Windows 上玩 Meteor。我使用 Ubuntu 执行此操作。这是显示我设置的链接。 http://lucidservices.com/2013/08/10/install-meteor-on-ubuntu/

    【讨论】:

      【解决方案3】:

      我们有一个陨石分支,它在 Windows 上运行良好。

      https://github.com/oortcloud/meteorite/tree/windows-updates

      它应该只需要克隆存储库(或下载 zip 文件)并在其上运行 NPM 安装。

      另外,http://win.meteor.com 维护了 Windows 的非官方 Meteor 版本。我用过,效果很好。

      如果您在完成这项工作时遇到问题,请告诉我。谢谢。

      肖恩

      【讨论】:

      • 我使用这个分支让它在 windows 下工作。我在使用 git 子模块的包方面遇到了一些问题,但我创建了一个拉取请求来解决这个问题。我不知道合并需要多长时间,但我的 fork 可以在这里找到:github.com/danielsvane/meteorite
      猜你喜欢
      • 1970-01-01
      • 2012-12-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-02
      • 1970-01-01
      • 2020-06-30
      • 2018-01-01
      相关资源
      最近更新 更多