Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 7db1d6a

Browse files
rafraphrodion-arrovflowd
authored
docs: Adding an example of installing a specific version of a package (#2479)
Co-authored-by: Rodion Abdurakhimov <rodion-arr@users.noreply.github.com> Co-authored-by: Claudio Wunder <cwunder@gnome.org>
1 parent 2ba5a68 commit 7db1d6a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/documentation/0016-npm/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ Specifying an explicit version of a library also helps to keep everyone on the s
8787

8888
In all those cases, versioning helps a lot, and `npm` follows the semantic versioning (semver) standard.
8989

90+
You can install a specific version of a package, by running
91+
92+
```bash
93+
npm install <package-name>@<version>
94+
```
95+
9096
## Running Tasks
9197

9298
The package.json file supports a format for specifying command line tasks that can be run by using

0 commit comments

Comments
 (0)