我的 package.json 说我有 react-router: 0.13.4
安装。但是,当我输入命令 npm view react-router
时它统计它正在使用 version: '1.0.0-rc3
我什至尝试过npm install <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9fedfafefcebb2edf0eaebfaeddfafb1aeacb1ab" rel="noreferrer noopener nofollow">[email protected]</a>
但是npm view react-router
仍然产生版本1.0.0-rc3
最佳答案
我相信npm view
显示最新远程软件包版本的详细信息,而不是已安装的版本。看node_modules/react-router/package.json
查看您安装的版本。使用npm install <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6b190e0a081f4619041e1f0e192b5b455a58455f" rel="noreferrer noopener nofollow">[email protected]</a> --save
如果您想更新 package.json 文件,请使用命令。
关于javascript - npm install Specific version 不安装特定版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33179589/