简体   繁体   English

无法在离子项目中添加平台

[英]Unable to add platform in ionic project

I am new to ionic. 我是离子新手。 I am able to install ionic and also create a new project based on this link http://ionicframework.com/docs/guide/installation.html.But when I try to add a platform it says failed with exit code ENOENT. 我可以安装ionic并基于此链接http://ionicframework.com/docs/guide/installation.html创建一个新项目。但是当我尝试添加平台时,它说失败,退出代码为ENOENT。

I tried to yield debug information by "ionic -d platform add android" as suggested in https://stackoverflow.com/a/32360435/5820057 . 我试图通过https://stackoverflow.com/a/32360435/5820057中建议的“ ionic -d platform add android”产生调试信息。

I got this msg . 我得到了这个味精

What does it mean? 这是什么意思? "Failed to find bower component 'android'". “未能找到Bower组件'android'”。 Is there any issues with the CLI version? CLI版本是否存在任何问题?

Android on OS X note gives you an error, searching it; OS X上的Android note提示您搜索错误; typing "? 输入“?”

Make sure JAVA_HOME is set, as well as paths to your JDK and JRE for java in browser tab" will result in cordova based errors. means ionic is wrapper around cordova , so most probably cordova will give you the exact error. Also make sure all required variable are available in PATH . 确保JAVA_HOME ,以及在浏览器选项卡中指向Java的JDKJRE路径,将导致基于Cordova的错误。这意味着ionic包裹了cordova ,因此cordova很有可能会为您提供确切的错误。还要确保所有错误必需变量在PATH中可用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM