Unable to install angularfire2 on Ionic 2#RC1 - ionic-framework

I'm working on integration of Ionic 2 app with firebase.While trying to install angularfire2 on Ionic 2 RC1 release. I get this error. How can I fix this dependency issue?
$ npm install angularfire2 --save
├── UNMET PEER DEPENDENCY #types/request#0.0.30
└── angularfire2#2.0.0-beta.5
$ ionic info
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
Ionic App Scripts Version: 0.0.36
ios-deploy version: 1.9.0
ios-sim version: 5.0.9
OS: Mac OS X Sierra
Node Version: v6.9.1
Xcode version: Xcode 8.1 Build version 8B62

Fixed the issues by installing the dependencies
npm install #types/request#0.0.30 --save
npm install #types/jasmine#^2.5.36 --save
npm install firebase angularfire2 --save
Got some warnings, but the packages got installed
npm WARN #ngtools/webpack#1.1.4 requires a peer of #angular/compiler-cli#^2.1.0 but none was installed.

Related

Ionic 2 is not working in local machine

I tried to run the ionic 2 basic application from my ubuntu 16.04.2 LTS machine. After ionic serve command.
It's showing up to this message ,nothing is building after this message
> ionic-app-base# ionic:serve /home/USER_NAME/Desktop/training/ionicProject/testProject
> ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
following info based on ionic
Cordova CLI: 6.5.0
Ionic Framework Version: 2.3.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.2.2
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v6.10.1
Xcode version: Not installed
Can you check the app-scripts version in your package.json file.
Make it to "#ionic/app-scripts": "1.1.4" if not already. Try running npm install again inside your app folder. Run ionic serve again.
I was having the same issue, I tried all versions of ionic/app-scripts 1.0.0 and above. the versions that work for me are 1.0.0 and 1.0.1 .
Try changing ionic/app-script version in package.json to 1.0.0 or 1.0.1
Then run npm install in your app folder
ionic serve (using sudo is not necessary.)
-------ionic info-------
Cordova CLI: 6.5.0
Ionic Framework Version: 2.3.0
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.0.1
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v6.10.0
Xcode version: Not installed

update to the latest ionic version

after ionic team has officially released ionic 1.2 versions
I checked
ionic -v
command to get my current version and I found it 1.7.12, then I did
npm install -g ionic
hopefully to update my current version and it just still on the previous version 1.7.12, so what is just the command I have to run to get the ionic 1.2 instead of ionic 1 which I already have now?
It is not a bug in npm, the 1.7.12 version that is shown when you run:
ionic -v
1.7.12
is the ionic-cli version, the command line utility, you can find it here: https://www.npmjs.com/package/ionic
The ionic 1.2 version that you are expecting, is the ionic framework version: http://code.ionicframework.com/# latest is 1.2.4 - Copenhagen
If you want to check the framework version that your app is running, go to your app directory and type:
ionic lib
Local Ionic version: 1.2.4 (<path>/myApp/www/lib/ionic/version.json)
Latest Ionic version: 1.2.4 (released 2016-01-08)
* Local version up to date
It may be bug with npm.
First Uninstall ionic and cordova using
npm uninstall cordova ionic
Then update node and npm
Install cordova and ionic
npm install -g cordova ionic
Check the version.
you can always run
sudo npm uninstall -g ionic && sudo npm install ionic

unable to add ionic-platform-web-client

$ ionic add ionic-platform-web-client
Failed to find the bower component "ionic-platform-web-client".
Are you sure it exists? (CLI v1.7.12)
Your system information:
Cordova CLI: 5.4.1
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 1.2.1
Ionic CLI Version: 1.7.12
Ionic App Lib Version: 0.6.5
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS
Node Version: v4.2.2
I tried the following command, didnt help as suggested in other stackoverflow Q&A.
bower install --allow-root --save-dev ionic-platform-web-client
Same issue when i tried in mac as well. Attached both the error messages.
ionic add ios
Failed to find the bower component "ios".
Are you sure it exists? (CLI v1.7.12)
Your system information:
Cordova CLI: 5.4.1
Ionic Version: 1.1.0
Ionic CLI Version: 1.7.12
Ionic App Lib Version: 0.6.5
ios-deploy version: 1.8.3
ios-sim version: 5.0.4
OS: Mac OS X El Capitan
Node Version: v4.2.4
Xcode version: Xcode 6.4 Build version 6E35b
This below command may be solve your problem :-
bower install --save-dev ionic-platform-web-client

Failed to find the bower component "ionic-platform-web-client"

I'm trying to install ionic-platform-web-client but keep getting this error..
Users-iMac:Beluga ryan$ ionic add ionic-platform-web-client
Failed to find the bower component "ionic-platform-web-client".
Are you sure it exists? (CLI v1.7.10)
Your system information:
Cordova CLI: 5.4.0
Ionic Version: 1.1.1
Ionic CLI Version: 1.7.10
Ionic App Lib Version: 0.6.5
ios-deploy version: 1.8.2
ios-sim version: 5.0.3
OS: Mac OS X El Capitan
Node Version: v5.0.0
Xcode version: Xcode 7.1.1 Build version 7B1005
This did it for me: bower install --save-dev ionic-platform-web-client
The resolved issue on github is here.
Try installing bower with this command line
npm install -g bower
Try installing git for windows, make sure to enable writing the git to your PATH during the installation:
https://git-scm.com/download/win

Error occured [Error: Unable to locate the ionic.project file. Are you in your project directory?]

For some reason the following error keeps on appearing, after using Ionic start:
Error occured [Error: Unable to locate the ionic.project file.
Are you in your project directory?]
Unable to locate the ionic.project file.
Are you in your project directory? (CLI v1.6.5)
Your system information:
Cordova CLI: 5.1.1
Gulp version: CLI version 3.9.0
Gulp local:
Ionic CLI Version: 1.6.5
Ionic App Lib Version: 0.3.9
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Mac OS X Yosemite
Node Version: v0.12.4
I am in the directory where I called ionic start
Try updating your ionic CLI. Worked for me:
npm update -g ionic