【发布时间】:2014-01-23 20:18:06
【问题描述】:
如何在windows下安装Meteroite?我是Meteor的新手。我尝试安装Router但在安装Router之前我知道它首先必须安装Meteorite。但Meteorite安装仅适用于Linux and ios。所以有没有可能在Windows 中安装Meteorite?
【问题讨论】:
如何在windows下安装Meteroite?我是Meteor的新手。我尝试安装Router但在安装Router之前我知道它首先必须安装Meteorite。但Meteorite安装仅适用于Linux and ios。所以有没有可能在Windows 中安装Meteorite?
【问题讨论】:
截至本文发布时,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。
【讨论】:
正式地,Meteor 和 Meteorite 还不能用于 Windows。您可以在http://win.meteor.com/ 尝试使用非官方的 Windows 包流星。但是陨石没有这样的等价物。
如果您喜欢使用 Windows,我建议您使用 Linux 的 VMware 映像在 Windows 上玩 Meteor。我使用 Ubuntu 执行此操作。这是显示我设置的链接。 http://lucidservices.com/2013/08/10/install-meteor-on-ubuntu/
【讨论】:
我们有一个陨石分支,它在 Windows 上运行良好。
https://github.com/oortcloud/meteorite/tree/windows-updates
它应该只需要克隆存储库(或下载 zip 文件)并在其上运行 NPM 安装。
另外,http://win.meteor.com 维护了 Windows 的非官方 Meteor 版本。我用过,效果很好。
如果您在完成这项工作时遇到问题,请告诉我。谢谢。
肖恩
【讨论】: