mirror of
https://github.com/zhigang1992/npm.git
synced 2026-01-12 17:32:45 +08:00
Document the use of a tag as a range specifier in dependencies
Closes #5855 Closes #5936
This commit is contained in:
committed by
Forrest L Norvell
parent
f2587be7d1
commit
e4e1223a91
@@ -320,6 +320,7 @@ See semver(7) for more details about specifying version ranges.
|
||||
* `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-tag(1)`
|
||||
|
||||
For example, these are all valid:
|
||||
|
||||
@@ -334,6 +335,7 @@ For example, these are all valid:
|
||||
, "elf" : "~1.2.3"
|
||||
, "two" : "2.x"
|
||||
, "thr" : "3.3.x"
|
||||
, "lat" : "latest"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user