May 2018
Intermediate to advanced
492 pages
12h 3m
English
Version number matching in npm is powerful and flexible. The same sort of version specifiers used in package.json dependencies can also be used with the npm install command:
$ npm install package-name@tag$ npm install package-name@version$ npm install package-name@version-range
The last two are what they sound like. You can specify express@4.16.2 to target a precise version, or express@">4.1.0 < 5.0" to target a range of Express V4 versions.
The version match specifiers include these choices:
The @tag attribute is a symbolic name such as @latest, @stable, or @canary. The package owner ...
Read now
Unlock full access