我需要安装一个Meteor 路由器包,但显然我不能使用陨石,因为陨石在 Windows 上不起作用。
有没有办法将它安装在我的流星中?
在项目文件夹中创建一个名为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
删除流星,文件夹结构应该在你的包文件夹中看起来像这样
然后meteor从你的“ /yourproject ”目录添加路由器
您需要创建包文件夹并使用 git clone 下载要使用的包。
一些包有依赖关系,所以你也需要从 git 克隆这些包。
流星添加包名
以下是此
http://csharprambling.wordpress.com/2014/04/24/adding-meteor-package-in-windows/
https://www.discovermeteor.com/blog/using-meteor-的一些参考资料和-atmopshere-on-windows/
You can just simply download it to /yourproject/packages/
folder