Updating minor Ionic version

Hello :slight_smile: could someone provide me with step by step instruction how to update my current ionic version to not mess up my app?..

Im not asking for instructions to migrate from one version to another… I want small version update…

If I’m understanding my package.json file corecctly I am on Angular 14.0.0 version and Ionic 6.1.9…

  "dependencies": {
    "@angular/common": "^14.0.0",
    "@angular/core": "^14.0.0",
    "@angular/forms": "^14.0.0",
    "@angular/platform-browser": "^14.0.0",
    "@angular/platform-browser-dynamic": "^14.0.0",
    "@angular/router": "^14.0.0",
    "@auth0/angular-jwt": "^5.1.0",
    "@capacitor/app": "4.0.1",
    "@capacitor/browser": "^4.1.1",
    "@capacitor/core": "4.3.0",
    "@capacitor/haptics": "4.0.1",
    "@capacitor/ios": "4.3.0",
    "@capacitor/keyboard": "^4.0.1",
    "@capacitor/preferences": "^4.0.2",
    "@capacitor/status-bar": "4.0.1",
    "@ionic/angular": "^6.1.9",
    "@ionic/storage-angular": "^3.0.6",
    "date-fns": "^2.29.3",
    "ionicons": "^6.0.3",
    "rxjs": "~6.6.0",
    "swiper": "^8.4.3",
    "tslib": "^2.2.0",
    "zone.js": "~0.11.4"
  },

I wish to go to the latest ionic version ( I think it is v6.6.1 )… Do I have to update some other packages aswell?

same steps from here: Upgrading to Ionic 6 | Ionic Documentation

This helps absolutely nothing… isn’t there like a npm update or upgrade command with the @latest handle to update the npm packages?

you can execute npx npm-check-updates and check what is outdated. After that, my suggestion is updating them one by one manually.

O damn I didn’t know this existed :smiley: thanks for this
So the result was this:
@angular-devkit/build-angular ^14.0.0 → ^15.2.2
@angular-eslint/builder ~13.0.1 → ~15.2.1
@angular-eslint/eslint-plugin ~13.0.1 → ~15.2.1
@angular-eslint/eslint-plugin-template ~13.0.1 → ~15.2.1
@angular-eslint/template-parser ~13.0.1 → ~15.2.1
@angular/cli ^14.0.0 → ^15.2.2
@angular/common ^14.0.0 → ^15.2.2
@angular/compiler ^14.0.0 → ^15.2.2
@angular/compiler-cli ^14.0.0 → ^15.2.2
@angular/core ^14.0.0 → ^15.2.2
@angular/forms ^14.0.0 → ^15.2.2
@angular/language-service ^14.0.0 → ^15.2.2
@angular/platform-browser ^14.0.0 → ^15.2.2
@angular/platform-browser-dynamic ^14.0.0 → ^15.2.2
@angular/router ^14.0.0 → ^15.2.2
@auth0/angular-jwt ^5.1.0 → ^5.1.2
@capacitor/app 4.0.1 → 4.1.1
@capacitor/cli 4.3.0 → 4.7.0
@capacitor/core 4.3.0 → 4.7.0
@capacitor/haptics 4.0.1 → 4.1.0
@capacitor/ios 4.3.0 → 4.7.0
@capacitor/keyboard ^4.0.1 → ^4.1.1
@capacitor/status-bar 4.0.1 → 4.1.1
@ionic/angular ^6.1.9 → ^6.6.1
@ionic/angular-toolkit ^6.0.0 → ^8.0.0

I don’t wan to upgrade angular… just Ionic and capacitor… what npm command should I run?

example:

npm install @capacitor/core@4.7.0
npm install @capacitor/cli@4.7.0 

etc etc

1 Like

Thanks for this :slight_smile: there should realy be more info in the docs

it’s basic package installation, it’s not a Ionic or Angular thing