Am I using the latest version of Ionic 5?

I installed the latest version of the Ionic CLI using “npm install -g ionic@latest” (6.11.11) and created a new project.
I noticed in the package.json the @Ionic/Angular and core version was only 5.0.0.
@ionic-native/core”: “^5.0.0”,
@ionic-native/splash-screen”: “^5.0.0”,
@ionic-native/status-bar”: “^5.0.0”,
@ionic/angular”: “^5.0.0”,

Is this correct?
It appears there are later versions out (5.3.5).
Should I upgrade all the Ionic packages manually or should I be using 5.0.0?

$ ionic info

Ionic:

Ionic CLI : 6.11.11 (C:\Users\fullo\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 5.3.5
@angular-devkit/build-angular : 0.1000.8
@angular-devkit/schematics : 10.0.8
@angular/cli : 10.0.8
@ionic/angular-toolkit : 2.3.3

Capacitor:

Capacitor CLI : 2.4.2
@capacitor/core : 2.4.2

The ^ means “take anything with major version 5”, so ^5.0.0 should catch 5.3.5. More details are in the node semver documentation.

1 Like

Ah nice. So the package version I can see from ionic info is the actual package version installed?
@ionic/angular 5.3.5

If I look in the npm folder it has this in its package.json
“_from”: “@ionic/angular@^5.0.0”,
“_id”: “@ionic/angular@5.3.5”,

That looks good to go.

1 Like