Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issues with adding ionic-service-core

I'm working on adding in ionic-service-core in order to add notifications to an ionic project I'm working on. I can't however, get the service core to install. Any attempts to do so result in this:

Failed to find the bower component "ionic-service-core".
Are you sure it exists? (CLI v1.4.0-alpha.6)

Your system information:

OS: Mac OS X Yosemite
Node Version: v0.10.33
Cordova CLI: 5.0.0
Ionic Version: 1.0.0-rc.5
Ionic CLI Version: 1.4.0-alpha.6
Xcode version: Xcode 6.3.1 Build version 6D1002 
ios-sim version: Not installed

Anyone have any experience working with ionic and the new services packages? Any clue what would cause this?

like image 854
Jordan Whalen Avatar asked May 16 '15 00:05

Jordan Whalen


3 Answers

To test that you have bower installed, run the command bower. If this is unrecognized, install with command npm install -g bower and afterwards run ionic add ionic-service-core.

This worked for me in Windows.

like image 52
Yenier Castañeda Delgado Avatar answered Nov 04 '22 15:11

Yenier Castañeda Delgado


Looks like the whole thing is a permissions issue with the users .config file. If you simply delete the .config folder sitting at Users/username/.config, and retry adding the components, they'll work.

like image 28
Jordan Whalen Avatar answered Nov 04 '22 16:11

Jordan Whalen


Here is a trick that works for me, you can first use bower install to install your package, and then use ionic add that will find the bower package previously installed :

  1. bower install myPackage
  2. ionic add myPackage

Works for me because of being behind a proxy.

like image 1
Bibix Avatar answered Nov 04 '22 15:11

Bibix