EN
React - check version from command line
4 points
In this short article we would like to show how to check used React version using command line.
Quick solution (type in terminal following command):
xxxxxxxxxx
1
npm v react
Note: first line of the output indicates react version, so in our case it is
17.0.1
- check below output.

Hint: go to react project before
npm v react
command usage - we want to see locally used version.
Command output:
xxxxxxxxxx
1
react@17.0.1 | MIT | deps: 2 | versions: 297
2
React is a JavaScript library for building user interfaces.
3
https://reactjs.org/
4
5
keywords: react
6
7
dist
8
.tarball: https://registry.npmjs.org/react/-/react-17.0.1.tgz
9
.shasum: 6e0600416bd57574e3f86d92edba3d9008726127
10
.integrity: sha512-lG9c9UuMHdcAexXtigOZLX8exLWkW0Ku29qPRU8uhF2R9BN96dLCt0psvzPLlHc5OWkgymP3qwTRgbnw5BKx3w==
11
.unpackedSize: 298.4 kB
12
13
dependencies:
14
loose-envify: ^1.1.0
15
object-assign: ^4.1.1
16
17
maintainers:
18
- sebmarkbage <sebastian@calyptus.eu>
19
- gaearon <dan.abramov@gmail.com>
20
- acdlite <npm@andrewclark.io>
21
- brianvaughn <briandavidvaughn@gmail.com>
22
- fb <opensource+npm@fb.com>
23
- trueadm <dg@domgan.com>
24
- sophiebits <npm@sophiebits.com>
25
- lunaruan <lunaris.ruan@gmail.com>
26
27
dist-tags:
28
experimental: 0.0.0-experimental-3310209d0
29
latest: 17.0.1
30
next: 0.0.0-8e5adfbd7
31
untagged: 16.14.0
32
33
published 2 months ago by gaearon <dan.abramov@gmail.com>