Upgrade Ionic to latest version
We did big chat. Things which were helpful:
- Be sure that you completely delete all previous version with
npm uninstall -g ionic
or manually fromrm -rf /usr/local/lib/node_modules
. Don't forget remove symlink too:rm -rf /usr/local/bin/ionic
- After completely deletion you should see error: command not found of
ionic -v
- And now if your
npm root -g
path is right like/usr/local/lib/node_modules
try to installnpm install -g ionic@latest
. Then you should get correct output ofionic -v
I simple run
$ ionic --version
$ 4.2.1
$ sudo npm i -g ionic@latest
$ ionic --version
$ 4.8.0
The ionic CLI package has been renamed @ionic/cli https://twitter.com/ionicframework/status/1223268498362851330
So you should uninstall ionic from your global
npm uninstall -g ionic
and add the new package name.
npm install -g @ionic/cli@latest
In case anyone comes here from google.