How to install atmosphere packages without meteori

2019-01-24 10:16发布

问题:

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?

回答1:

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


回答2:

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