I have following in my package.json file. I want to see if there is any new version of aws-sdk available and if so, i want to update it. how can i do this via npm in my project.
{
"name" : "app",
"version" : "1.0",
"dependencies" : {
"aws-sdk" : "^2.739.0",
....
}
Check for new versions
npm outdated
, this will give you a list of all matching semver versions - then npm update
to load these available versions npm install aws-sdk@xyz
to update the package to the desired versionyou can add this symbol ^ before the package number than run this command
npm install aws-sdk
so you package.json should be like that
{
"name" : "app",
"version" : "1.0",
"dependencies" : {
"aws-sdk" : "^2.739.0",
....
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.