如何在没有陨石的情况下安装大气包? [英] How to install atmosphere packages without meteorite?
问题描述
mrt 目前在 Mac 上的卷名中有空格的错误 https://github.com/oortcloud/meteorite/问题/172.
mrt currently has a bug with spaces in Volume names on the Mac https://github.com/oortcloud/meteorite/issues/172.
在修复之前,我如何从大气手动安装软件包?
Until that is fixed, how can I manually install packages from atmosphere?
推荐答案
您可以在您的项目中创建一个名为 /packages
的目录 &然后手动安装每个包及其依赖项.例如对于流星路由器"
You can create a directory called /packages
in your project & then manually install each package and its dependencies. e.g for 'meteor router'
在 /packages
git clone https://github.com/tmeasday/meteor-router.git
mv meteor-router router
git clone --recursive https://github.com/tmeasday/meteor-page-js-ie-support.git
mv meteor-page-js-ie-support page-js-ie-support
第二个是对流星路由器的依赖,您可以在包的大气页面上看到.确保子模块 pages-js 也被 git 克隆是递归的.
The second is a dependency on meteor router which you can see on the package's atmosphere page. It's recursive to make sure the submodule pages-js is also git cloned in.
流星 0.65+
正如thatjuan 所指出的:一旦你这样做了,你只需要将主要的添加到你的项目中.您不必添加依赖项.
As pointed out by thatjuan: Once you do this, you just need to add the main one to your project. You don't have to add the dependencies.
meteor add router
这篇关于如何在没有陨石的情况下安装大气包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!