admin管理员组

文章数量:1356892

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

Share Improve this question asked Oct 16, 2015 at 21:10 LiondancerLiondancer 16.5k54 gold badges163 silver badges263 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 2

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

本文标签: javascriptnpm install specific version does not install specific versionStack Overflow