meteor add command adds one or more packages to your Meteor project.
Usage
Basic Usage
Add a single package:Version Constraints
You can specify version constraints when adding packages.Minimum Version
Add a package at version 1.1.0 or higher (but not 2.0.0 or higher):Exact Version
Add a package at exactly version 1.1.0:Multiple Constraints
You can combine constraints using|| (OR):
Removing Version Constraints
To remove a version constraint for a specific package, runmeteor add again without specifying a version:
Options
Allow packages in your project to be upgraded or downgraded to versions that are potentially incompatible with the current versions, if required to satisfy all package version constraints.
Examples
Add React:Common Packages
Authentication
UI Frameworks
Utilities
Development
insecure or autopublish in production.
Finding Packages
Search for available packages:Package Sources
Packages can come from:- Meteor Package Server - Official and community packages
- Local packages - Packages in your project’s
packages/directory - Atmosphere - Legacy package repository (now integrated)
Version Resolution
When you add a package, Meteor’s constraint solver:- Resolves all dependencies
- Ensures version compatibility
- Selects the newest compatible version of each package
- Updates
.meteor/versionsfile