Installing a local package on Meteor

The accepted answer is not as good as this one: https://dweldon.silvrback.com/local-packages


Meteor from 0.9 does not have a "packages" directory by default, but will still use it for local packages. Create it if it doesn't exist.

cd <your-app>
mkdir packages

Your locally developed package needs to be inside this folder. Of course you can simply create a symbolic link. You can do this yourself with ln -s or use the feature of mrt:

mrt link-package /path/to/<your-package>

Please note, if you provide a relative path, this must be relative to the packages directory, not relative to your current location. So you might want to cd into the packages directory first to avoid confusion.

Finally add the package:

meteor add <your-package>

IMPORTANT: <your-package> needs to be the name of the description inside your package.js. The name of the folder/symlink is not relevant for this procedure.

Package.describe({
  name: "<your-package>"
});

If your local package has the same name as a package registered online, your local version will be used.


try to put your files in the 'packages' directory of your app and execute : meteor add [package-name]

Tags:

Meteor