Upgrading to ionic-v4

Hi,
I want to upgrade to ionic angular to 4.
Below is my ionic info
Ionic:

Ionic CLI : 5.4.8 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.4
@ionic/app-scripts : 3.2.3

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 6.2.3, ios 5.0.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.0.5, (and 8 other plugins)

Utility:

cordova-res : not installed
native-run : 0.2.8 (update available: 0.3.0)

System:

Android SDK Tools : 26.1.1 (/Users/sathguru/Library/Android/sdk)
ios-deploy : 1.9.4
ios-sim : 8.0.2
NodeJS : v10.13.0 (/usr/local/bin/node)
npm : 6.13.2
OS : macOS High Sierra
Xcode : Xcode 10.1 Build version 10B61

I used below commands,
But ionic-angular is showing same version.
So please help me. How to do

npm rm @ionic/angular --save
npm install @ionic/angular --save

As ionic v4 have too many change (route, component attr…) compare to v3.
I suggest you build a new project and upgrade page by page.

1 Like