0

我需要安装一个Meteor 路由器包,但显然我不能使用陨石,因为陨石在 Windows 上不起作用。

有没有办法将它安装在我的流星中?

4

3 回答 3

2

在项目文件夹中创建一个名为packages的目录

示例“ /yourproject/packages

Meteor 路由器需要这三个存储库才能正常工作。

文件夹中 git clone 这些存储库

git clone --recursive https://github.com/tmeasday/meteor-router.git

git clone --recursive https://github.com/tmeasday/meteor-page-js-ie-support.git

git clone --recursive https://github.com/tmeasday/meteor-HTML5-History-API.git

删除流星,文件夹结构应该在你的文件夹中看起来像这样

  1. 路由器
  2. 页面-js-ie-支持
  3. HTML5-历史-API

然后meteor从你的“ /yourproject ”目录添加路由器

于 2014-07-21T10:51:03.120 回答
1
  1. 您需要创建包文件夹并使用 git clone 下载要使用的包。

  2. 一些包有依赖关系,所以你也需要从 git 克隆这些包。

  3. 确保从下载的目录中删除流星。
  4. 有时,git clone 不会完全下载文件,因此您必须转到未获取所有文件的包目录并运行“git submodule update –init”,然后重新克隆包。
  5. 现在您拥有所有必需的包并将目录更改为正确名称并且所有文件都可用,返回项目根目录并运行

流星添加包名

以下是此 http://csharprambling.wordpress.com/2014/04/24/adding-meteor-package-in-windows/
https://www.discovermeteor.com/blog/using-meteor-的一些参考资料和-atmopshere-on-windows/

于 2014-04-25T03:44:54.960 回答
0

You can just simply download it to /yourproject/packages/ folder

于 2013-07-06T21:47:11.980 回答