- version Must match version exactly
- >version Must be greater than version
- >=version etc
- <version
- <=version
- ~version "Approximately equivalent to version"
- ^version "Compatible with version"
- 1.2.x 1.2.0, 1.2.1, etc., but not 1.3.0
- http://... See 'URLs as Dependencies' below
- * Matches any version
- "" (just an empty string) Same as *
- version1 - version2 Same as >=version1 <=version2.
- range1 || range2 Passes if either range1 or range2 are satisfied.
- git... See 'Git URLs as Dependencies' below
- user/repo See 'GitHub URLs' below
- tag A specific version tagged and published as tag See npm-dist-tag
- path/path/path See Local Paths below
Last active
April 17, 2018 21:57
-
-
Save bbrown/3f6633a26b15bdc65ae345c19c73a008 to your computer and use it in GitHub Desktop.
Ways to specify versions in npm dependencies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment