yarn add package@^2.0.0

Category: Node.js & npm/yarn

yarn add package@^2.0.0

Add a package with a specific semver range to package.json

Adds a package with a specific semver range. The ^ means 'compatible with 2.x.x' — any minor or patch update is allowed.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.