Ionic lib, update in ionic 2

I try to update my ionic project with:

ionic lib

but it fails, as it looks in the wrong folder:

Unable to load ionic lib version information
Local Ionic version: undefined  (/home/tzookb/mobile/FitMob/www/lib/ionic/bower.json)
Latest Ionic version: 1.2.4  (released 2016-01-08)
* Local version is out of date

there is no “lib” folder inside “www” folder

In Ionic 2, everything has been moved to /src.
Ionic lib is depcrecated.
i guess everything is done with
npm install -g ionic (for update too)

followed by

npm update