I need to get the fastest solution for push notification and my preference tool for my case is Ionic. Being apricity os user then I try to test it with ‘edge’ resources 🙂
Install NodeJs Ionic
yaourt -S nodejs-ionic
Check its result :
npm -v
3.10.6ionic -v
******************************************************
Dependency warning – for the CLI to run correctly,
it is highly recommended to install/upgrade the following:
Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova`
******************************************************
1.7.16
————————————
Ionic CLI is out of date:
* Locally installed version: 1.7.16
* Latest version: 2.0.0
* https://github.com/driftyco/ionic-cli/blob/master/CHANGELOG.md
* Run npm install -g ionic to update
————————————
ok
Upgrade cordova
sudo npm install -g cordova
cordova -v
6.3.1
Test project
ionic start hello tabs
? (node:28243) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Creating Ionic app in folder /home/alamsyahr/ionic/hello based on tabs project
Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================]Â 100%Â 0.0s
Downloading: https://github.com/driftyco/ionic-starter-tabs/archive/master.zip
[=============================]Â 100%Â 0.0s
Updated the hooks directory to have execute permissions
Update Config.xml
Initializing cordova project
? ? ? ? Your Ionic app is ready to go! ? ? ? ?
Ups, another problem.
Check version
npm info graceful-fs | grep version
versions:
version: ‘4.1.6’
Add android platform
ionic add platform android
? (node:30090) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
You must have bower installed to continue.
Type `npm install -g bower` (CLI v1.7.16)
Your system information:
Cordova CLI: 6.3.1
Ionic Framework Version: 1.3.1
Ionic CLI Version: 1.7.16
Ionic App Lib Version: 0.7.3
OS: Distributor ID:Â Â Â Arch Description:Â Â Â Arch Linux
Node Version: v6.5.0
Ok, instal bower
sudo npm install -g bower
Back to android
ionic add platform android
WARN: ionic.project has been renamed to ionic.config.json, please rename it.
This command has been deprecate. All resources are currently available in NPM and we recommend that you use NPM to manage these.
More information is available here: https://github.com/driftyco/ionic-cli/wiki/Migrating-to-NPM-from-bower
Well, I think I should wait for Ionic 2 or using something else now 😉