Reputation: 4329
Here is what I can see on my terminal
ionic add platform android
You must have bower installed to continue.
Type npm install -g bower
(CLI v1.7.12)
Your system information:
Cordova CLI: 5.4.1 Ionic Version: 1.1.1 Ionic CLI Version: 1.7.12 Ionic App Lib Version: 0.6.5 ios-deploy version: Not installed ios-sim version: 5.0.6 OS: Mac OS X El Capitan Node Version: v4.2.4 Xcode version: Xcode 7.2.1 Build version 7C1002
MacBook-Pro-2:myapp AliSajid$ npm install -g bower /usr/local/bin/bower -> /usr/local/lib/node_modules/bower/bin/bower [email protected] /usr/local/lib/node_modules/bower MacBook-Pro-2:myapp AliSajid$ ionic add platform android
Failed to find the bower component "platform". Are you sure it exists? (CLI v1.7.12)
Your system information:
Cordova CLI: 5.4.1 Ionic Version: 1.1.1 Ionic CLI Version: 1.7.12 Ionic App Lib Version: 0.6.5 ios-deploy version: Not installed ios-sim version: 5.0.6 OS: Mac OS X El Capitan Node Version: v4.2.4 Xcode version: Xcode 7.2.1 Build version 7C1002
Upvotes: 2
Views: 10266
Reputation: 15545
The command to add platform have been changed to
ionic cordova platform add android
Upvotes: 14
Reputation: 26494
You are calling ionic add platform android
it should be ionic platform add android
.
Also if you are safe to reinstall, perhaps try npm install -g cordova ionic
to ensure all latest dependencies.
Upvotes: 6
Reputation: 1574
It seems like you have to install Bower first with npm install -g bower
.
Upvotes: 0