ufk
ufk

Reputation: 32094

installing github project as a meteor package

I forked a meteor package on github at https://github.com/kfirufk/angular2-meteor-accounts-ui

now I want to install it on a meteor project that I have. there are tons of information on the net, some recommend using meteorite, others recommend using mgp... but all the information that i find is for very old version of meteor and nothing actually works!

any information regarding the issue would be greatly appreciated.

update

I created packages directory inside the root directory and cloned the github package to that directory.

I edited .meteor/packages file and added angular2-meteor-accounts-ui.

now when i run the meteor application i get the following error:

While selecting package versions:
   error: unknown package in top-level dependencies:
   angular2-meteor-accounts-ui

angular2-meteor-accounts-ui is the name of the package of the github project i cloned (in package.json).

Upvotes: 2

Views: 225

Answers (1)

Ricardo Pesciotta
Ricardo Pesciotta

Reputation: 393

If I understand the question correctly, this is the procedure I've done myself, and it works:

  1. Stop the app
  2. edit the packages file and add the package name of your git fork
  3. clone your git fork inside the packages folder of your meteor project. When you start meteor, packages inside that folder take precedence over the Internet, so once it finds the package there, it will not check the one in atmospherejs for download.

Note: if you want the package to be part of your project code, just remove .git inside the package clone, and add the whole folder to your app repo.

Upvotes: 2

Related Questions