We have rewritten the CLI from the ground up. Our main focus was to:
Decrease the amount of time to the first start execution
Improve the responsiveness of every CLI command
Make the architecture flexible for future platform support (PWA, electron, etc.)
Provide better help, more guidance, and more feedback when executing commands.
In doing so we decided to take a new approach to the CLI’s structure. The base CLI installation now ships with global commands that are common to all Ionic apps.
Cordova commands have been namespaced (ionic --> ionic cordova) to allow for future platform support and to reduce clutter. Cordova functionality has been moved into a CLI plugin, which is installed by default with new Ionic projects and can be installed in existing Ionic projects with npm i --save @ionic/cli-plugin-cordova.
i have tried beta version. It was awesome but i moved back to cli 2.2.3 due to some issues with beta versions. Still one issue with CLI 3 is that it will not generate pages for ionic version 2 projects
(a) I’m not a huge fan of the generators anyway, and recommend that people just pretend they don’t exist.
(b) If you have problems with unsupported old versions of things, which version 2.x of the framework is at this point, the first question you should ask yourself, and the first question anybody else is going to ask you, is “does the problem persist in the latest supported release version?”. I’ve never used the v3 CLI, so I can’t speak to what issues it does have, but “not supporting unsupported stuff” isn’t a valid one.
P.S.: for an existing project, the ionic blog tell to uninstall ionic first but the ionic-cli doesn’t…I guess it’s better to uninstall it first. I did, it worked…
There is absolutely no reason to run npm with escalated privileges. It is dangerous and opens you up to all sorts of security problems, along with making it nigh impossible to clean up if there are problems. If on unix, install nvm. If on Windows, install nvm-windows.
I’m getting this during the npm uninstall -g ionic command, but rapropos just said not to use sudo due to security problems so I was hesitant to run it again as a super user…
He is not wrong. But because of the way you installed your node+npm I think you will have to keep using it. Maybe also uninstall node and reinstall it via nvm- it’s awesome.