How to install atmosphere packages without meteori

2019-01-24 10:26发布

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?

2条回答
放我归山
2楼-- · 2019-01-24 10:51

You can create a directory called /packages in your project & then manually install each package and its dependencies. e.g for 'meteor router'

in /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

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.

Meteor 0.65+

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
查看更多
乱世女痞
3楼-- · 2019-01-24 11:05

meteor router also needs HTML5-History-API

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

remove meteor and the folder should look like this HTML5-History-API

then meteor add router

查看更多
登录 后发表回答