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
Related
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.
Nevermind that I got this to install successfully. The issue now is that after I managed to fix it and install it.. Later on it fails again. I can't seem to understand what this has to do with..
Running this command on our existing ionic project renders the error below.
ionic add ionic-platform-web-client
Failed to find the bower component "ionic-platform-web-client".
Are you sure it exists? (CLI v1.7.14)
Your system information:
Cordova CLI: 6.1.1
Ionic Version: 1.3.0
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: Not installed
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v4.4.3
Xcode version: Xcode 7.3 Build version 7D175
So I went ahead and pretty much uninstalled everything from the npm, bower, node, ionic, the platforms.. Wiped out the the project from the top to the bottom and IT WORKED!! ionic add ionic-platform-web-client installs!
BUT then
After sometime.. Whenever I come back to the project and run other commands like, ionic plugin add phonegap-plugin-push it fails again. Its very confusing. Does anyone know where the issue stems from?
ionic add <component name> runs bower install --save-dev <component name>. See these lines:
https://github.com/driftyco/ionic-cli/blob/3d675b1584b5921ca05aad6af17d84fd691e7b0c/lib/ionic/add.js#L16-L30
https://github.com/driftyco/ionic-cli/blob/3d675b1584b5921ca05aad6af17d84fd691e7b0c/lib/ionic/add.js#L78-L82
Try to running:
bower install --loglevel=debug ionic-platform-web-client and see if you get any glimpse on the issue.
$ 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
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
I am using ionic and wanted to add deploy option to my code but can't install
ionic-service-deploy.
I am trying to run
ionic add ionic-service-deploy
but getting error:
> Failed to find the bower component "ionic-service-deploy".
Are you sure it exists? (CLI v1.4.5)
Your system information:
Cordova CLI: 5.0.0
Ionic Version: 1.0.0
Ionic CLI Version: 1.4.5
Ionic App Lib Version: 0.0.22
OS: Windows 7 SP1
Node Version: v0.12.4
the issue was with firewall, just need to do proxy and it will solve the issue
You must run this first:
cordova plugin add https://github.com/driftyco/ionic-plugins-deploy
Source: http://docs.ionic.io/v1.0/docs/deploy-install
Sometimes if i'm on a non-windows pc at work i'm always having problems with bower and npm all i run is the command below
git config --global url."https://".insteadOf git://