How to update to Ionic 4 Rc-1 to RC-2?

I trying to find a way to update Ionic Framework from version Rc-1 to Rc-2.

I am new at this so can one please help me to do this.

I tryed this but it i downgrade Ionic from 4.8 to 4.0…
sudo npm install -g ionic@4.0.0-rc.2

Is there any way to upgrade the ionic framework to Rc-2?

Please help.

Hello,
if your package.json is uptodate, then you see there the versions of whatever you have installed. You can read https://docs.npmjs.com/cli-documentation/ for better knowledge.

If you have visual code, then there are extensions that helps with npm.

Also you can do it manually in package.json, if you know exactly the version.

for example you have

"@ionic/angular": "4.0.0-rc.0",

and you know that 4.0.0-rc.2 exist, than change it by hand.

"@ionic/angular": "4.0.0-rc.2",

Do not forget to update it on commandline inside your folder

npm i

Also check on npm documentation what ~ ^ etc. means.

Best regards, anna-liebt

2 Likes

update ionic/angular to 4.xx

npm install --save @ionic/angular@4.0.0-rc.2 or 4.0.0-rc.1

The package.js is updated automatically.