My package.json says I have react-router: 0.13.4
installed. However, when I type in the mand npm view react-router
it stats that it is using version: '1.0.0-rc3
I even tried npm install [email protected]
but npm view react-router
still produces version 1.0.0-rc3
My package.json says I have react-router: 0.13.4
installed. However, when I type in the mand npm view react-router
it stats that it is using version: '1.0.0-rc3
I even tried npm install [email protected]
but npm view react-router
still produces version 1.0.0-rc3
3 Answers
Reset to default 2I believe npm view
shows details of the latest remote package release, not the installed version. Look at node_modules/react-router/package.json
to see your installed version. Use the npm install [email protected] --save
mand if you want to update your package.json file.
npm install [email protected]
then check the version in terminal with npm view [email protected] version
it will show the version of react router.
If you look at the react-router
versioning on their GitHub releases page, you will notice there is no version 0.13.4
after version 0.13.3
, which might be why NPM defaults to installing the latest version 1.0.0-rc3
.