Update Local Ionic CLI to latest

Looking for a way to update my Ionic CLI to the latest version. Which I have already updated globally, but is not reflecting on my project.

Global CLI


Local Project CLI with all the other information (Used Ionic Info command)


Ionic CLI : 5.4.16
Ionic Framework : @ionic/angular 5.6.7
@angular-devkit/build-angular : 12.0.1
@angular-devkit/schematics : 12.0.1
@angular/cli : 12.0.1
@ionic/angular-toolkit : 4.0.0


Capacitor CLI : 2.4.7
@capacitor/core : 2.4.7


Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : none
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.2, (and 14 other plugins)


cordova-res (update available: 0.15.3) : 0.15.2
native-run : 1.3.0


NodeJS : v14.15.0 (/usr/local/bin/node)
npm : 6.14.13
OS : macOS
Xcode : Xcode 12.5 Build version 12E262

Any Help is appreciated. Thank you.

do you have the @ionic/cli package installed locally?

Let me check in the package.json

No, I cannot find @ionic/cli in package.json.

Can you do npm ls @ionic/cli or which ionic?

I recommend using nvm to manage Node.js versions instead of package managers that throw things in /usr/local/.

npm ls @ionic/cli output

droom@0.0.1 /Users/hussain/Documents/Applications/droom-app/application
└── (empty)

which ionic output