Yes, friends, this is increasingly proving true.
Today, setting up an Ionic development environment is as annoying and cumbersome as setting up a Java environment for web.
Believe me, if I have the latest versions of Cordova, Ionic and Node.js, nothing will work as planned!
Obviously a raw Ionic app works. But try to start adding some plugins that are officially listed in Ionic’s own documentation, and … BOOM! The errors of library incompatibilities begin. Where else have we seen this? In Java …
Believe me, just a few plugins, to find out that you can only install if you change the version of Node.js to X.X.X, and the version of NPM has to be Y.Y.Y not to mention that its latest version of Ionic CLI is not, Which use the lower Z.Z.Z.
Wow, this is giving me so much headache that I’m almost giving up the Ionic app!
Currently my environment setting is:
cli packages: (/home/walter/workspace/0-javascript/0-ionic/dieta-fit-v2/node_modules)
@ionic/cli-plugin-cordova : 1.6.2
@ionic/cli-plugin-ionic-angular : 1.4.1
@ionic/cli-utils : 1.7.0
ionic (Ionic CLI) : 3.7.0
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 1.3.7
Cordova Platforms : android 6.2.3 ios 4.4.0
Ionic Framework : ionic-angular 3.4.2
System:
Android SDK Tools : 26.0.2
Node : v7.10.1
OS : Linux 4.10
npm : 5.3.0
And All I wanted was to be able to use some plugins like LocalNotifications, this one, by the way, do not install or pray to Jesus Christ!
Please give me a light, which would be the ideal environment setting so that I can only install this and other plugins!
Remembering that I always try to follow Ionic’s official documentation to the fullest and I always use Ionic CLI to add and remove platforms and plugins:
$ ionic cordova plugin add some-plugin