最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - npm install specific version does not install specific version - Stack Overflow

programmeradmin1浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论