First way, with cmd, like:
npm rm @ionic/angular --save
npm install @ionic/angular --save
Second way, the “clean sheet” way:
edit manually package.json
and change the version according what you want, like changing 4.0.0-beta.3
to 4.0.0-beta.5
then
rm -r node_modules
rm package-lock.json
npm install
conz: it wipe all libs and will recreate a new lock file, so in the meantime you could receive other dependencies update
pro: it makes every dependencies clean again
I use this method these days with beta because then I’m sure I’m up-to-date and won’t discover later some weird issue with a dependencies, but well like I said, there are some conz
Alternative: use ncu
(https://github.com/tjunnone/npm-check-updates). In any case actually, I love ncu, it really helps me each week to follow updates or at least to see which of the dependencies I used moved
important note if you want to upgrade to beta.5 from beta.3, note that you should also check if you are using typescript v2.9.2 and angular >= 6.1, if not they should be upgraded too
I hope it helps