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
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
.
本文标签: javascriptnpm install specific version does not install specific versionStack Overflow
版权声明:本文标题:javascript - npm install specific version does not install specific version - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744018721a2576817.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论