How to install atmosphere packages without meteorite?
Asked Answered
L

2

9

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?

Limon answered 10/8, 2013 at 8:0 Comment(0)
L
15

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
Libre answered 10/8, 2013 at 9:16 Comment(4)
if i'm not mistaken, don't i also need to add some entries to a packages.json? I'm sure I read this somewhere but I just can't remember where.Limon
i tried it and it worked! but how did you know to rename the files as you did? what if i'm installing another package, how would i know to rename the files and to what filenames? there was no indication in the readme on the github entry for meteor-router to rename as such.Limon
You wouldn't have to edit the smart.json or anything, you don't need meteorite to use the above & it ignores these files too, meaning you can use it on windows too. You have to rename the directory to whatever the package's name is on atmosphereLibre
I found that after 0.6.5 you also have to add the package to .meteor/packages (using meteor add). I was trying with iron-router, and this was the only way to get it working.Anatolia
G
0

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

Gyve answered 21/7, 2014 at 10:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.