Skip to content

Instantly share code, notes, and snippets.

@SeriousM
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SeriousM/eb0d77a648ed45d3be3f to your computer and use it in GitHub Desktop.
Save SeriousM/eb0d77a648ed45d3be3f to your computer and use it in GitHub Desktop.
Debugging / Fixing Meteor Packages

copied from http://collidercreative.com/adding-custom-local-packages-to-meteor-with-meteorite/

##STEP 1: ADD PACKAGE PATH TO SMART.JSON FILE

To have Meteor load a local package you need to add the package and path to your smart.json file like so:

{
  "packages": {
    "font-awesome-4": {},
    "bootstrap-3": {},
    "accounts-linkedin": {},
    "iron-router": {},
    "mixpanel": {
      "path": "../../Javascript/meteor/packages/meteor-mixpanel"
    }
  }
}

One of the nuances that wasn’t obvious to me initially is that this path does not have to be in your project directory. It can be anywhere on your local system, so long as you get the path right. Meteor will then load that file (instead of using one from Atmosphere, etc) when it “installs” your packages.

##STEP 2: ADD PACKAGE TO METEOR WITH MRT ####If not added already!

This step eluded me for a little while, I figured that because I had added the package to smart.json that it would automatically add it to my project. I’m unclear as to the exact design of this process, but for me unless I added the package to meteor, it wouldn’t work. Add it to meteor like so:

mrt add mixpanel

##DONE!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment