Update rc4 project to latest


#1

Q) Can someone please tell me the commands required so I don’t screw up my project?

There are no instructions on how to update an RC4 project to the latest final release in the Ionic blog. They used to provide the commands and the latest package.json in their posts but have not bothered lately.

Thanks.


#2

I was on RC4 before, and all I did was literally just npm install ionic-angular --save. Bit risky I suppose, but nothing broke, then again the app I’m working on might not be the biggest or insanely advanced. If you don’t want to mess up your project and don’t have a repo for it, why not just make a copy of the folder? Just remember to test everything after updating :wink:


#3

Ok cool, would you mind pasting your “dependencies” and “devDependencies” package.json section here please?


#4

Here you go

{
	"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/cloud-angular": "^0.9.1",
		"@ionic/storage": "1.1.6",
		"ionic-angular": "2.0.0",
		"ionic-app-lib": "2.2.0",
		"ionic-native": "2.4.1",
		"ionicons": "3.0.0",
		"ng2-translate": "4.2.0",
		"rxjs": "5.0.3",
		"zone.js": "0.6.26"
	},
	"devDependencies": {
		"@ionic/app-scripts": "1.0.0",
		"sw-toolbox": "^3.4.0",
		"typescript": "2.0.9"
	}
}

#5

@Daveshirman you can the latest package.json from here .
Just run npm install -g ionic@latest
clear your node_modules
and run npm install


#6

Thank you both. Much appreciated.


#7

Simply re-install the Ionic CLI and maybe Cordova CLI (I updated both today), delete node_modules and run npm install. The only things that can break after that are text-area inputs and slides. In my case, text-areas work fine, but slides went completely off, trying to make everything work again. Would be great if anyone shares a link to some examples. Thanks!