Since the Ionic Team has launched the Ionic2, there has been great buzz about the same. All the mobile developer's are trying there hand on Ionic2. With Each upgrade few new features and bug fixing were introduced. Now Finally Ionic Team has launched the Ionic2 Release Version. That's a great news, isn't it?
But Now we all have one problem with us. How to update our existing Ionic2 Project's?
We are going to look into the solution for the same.
The quickest way of checking package.json will be to look into ionic starter template.
now remove the node_modules folder from ionic project and naviagate to your project location in terminal/command prompt. Once you reach in project root, enter below command
This will install all the node modules again. Cool, we have now updated our project to latest ionic 2 version. We can build our application now with all latest features and bug fixes for ionic2.
But Now we all have one problem with us. How to update our existing Ionic2 Project's?
We are going to look into the solution for the same.
Update Ionic CLI
Insert the command
npm install -g ionicin command prompt and Enter
Update Ionic Project Dependencies
Open package.json within your project folder and update the dependencies as shown
"dependencies": { "@angular/common": "2.2.1", "@angular/compiler": "2.2.1", "@angular/compiler-cli": "2.2.1", "@angular/core": "2.2.1", "@angular/forms": "2.2.1", "@angular/http": "2.2.1", "@angular/platform-browser": "2.2.1", "@angular/platform-browser-dynamic": "2.2.1", "@angular/platform-server": "2.2.1", "@ionic/storage": "1.1.7", "ionic-angular": "2.0.0", "ionic-native": "2.4.1", "ionicons": "3.0.0", "rxjs": "5.0.0-beta.12", "zone.js": "0.6.26", "sw-toolbox": "3.4.0" }
now remove the node_modules folder from ionic project and naviagate to your project location in terminal/command prompt. Once you reach in project root, enter below command
npm install
This will install all the node modules again. Cool, we have now updated our project to latest ionic 2 version. We can build our application now with all latest features and bug fixes for ionic2.
Comments
Post a Comment