0

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?

russellmania
  • 598
  • 1
  • 7
  • 21

2 Answers2

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
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