简体   繁体   中英

how to update/upgrade to latest version of aws-sdk using npm in a react js project?

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

  1. npm outdated , this will give you a list of all matching semver versions - then npm update to load these available versions
  2. Use https://www.npmjs.com/package/aws-sdk (versions tab) to see which versions are available - then use npm install aws-sdk@xyz to update the package to the desired version

you 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM