Issue
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
Solution
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.
Answered By - GONeale
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.