[英]Axios version package.json
I would like to switch to axios 0.12 version . 我想切换到axios 0.12版本。 It's posible to go back from the latest version? 可以从最新版本返回吗?
"axios": {
"version": "0.16.2",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.16.2.tgz",
"integrity": "sha1-uk+S8XFn37q0CYN4VFS5rBScPG0=",
"requires": {
"follow-redirects": "1.2.4",
"is-buffer": "1.1.5"
}
},
Yes, this is possible. 是的,这是可能的。 The generic form is as follows: 通用形式如下:
npm install <package>@<version>
For example: npm install foobar@2.0.0 例如:npm install foobar@2.0.0
You can also add the --save
flag to that command to add it to your package.json
dependencies, or --save --save-exact
flags if you want that exact version specified in your package.json dependencies. 您还可以在该命令中添加--save
标志,以将其添加到package.json
依赖项;如果希望在package.json依赖项中指定确切的版本,则可以添加--save --save-exact
标志。
If you're not sure what versions of a package are available, you can use: 如果不确定软件包的哪些版本可用,可以使用:
npm view <package> versions
I will recommend you to go through documentation of the npm install command 我建议您仔细阅读npm install命令的文档
Although completely unrelated to this question, I would recommend you to read about yarn and yarn on SO 虽然完全无关的这个问题,我建议你阅读有关纱和上纱SO
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.