I can run npm -v react-router on my react app and I get v6.9.0. But if I look at the npmjs page for react-router the newest version is 5.0.1. How is this possible?
Asked
Active
Viewed 29 times
0
russellmania
- 598
- 1
- 7
- 21
2 Answers
1
That's your version of npm. If you type npm -v and then npm -v <any arg>, you'll get the same answer.
Nick G
- 1,858
- 11
- 16
-
Derp. Should've gone with `npm list react-router` – russellmania Jul 02 '19 at 13:19
1
npm -v returns the npm version (6.9.0)
To get installed react-router version:
npm list react-router.
More info about npm list command: Find the version of an installed npm package
seahorsepip
- 3,855
- 1
- 16
- 29