在CLI离子构建Android什么都不做 [英] Ionic build android in CLI does nothing

查看:95
本文介绍了在CLI离子构建Android什么都不做的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的试图避免在问这个问题,但我一直停留在这一个很好的两天。问题是,当我尝试运行命令离子构建Android 我什么也没得到。没有错误的响应,没有任何警告,什么都没有。

I really tried to avoid having to ask this question but I've been stuck on this for a good two days. The problem is that when I try to run the command "ionic build android" I get nothing. No error response, no warning, nothing.

我安装的node.js,使我的NPM全球化,所以我可以在任何地方访问它。我安装离子和科尔多瓦通过NPM安装和我能够启动应用程序,看看它在网络上,但是当我尝试我的设备上运行它,我没有得到任何回应的。

I installed node.js and made my npm global so I can access it anywhere. I installed ionic and cordova via npm install and I was able to start the application and see it on the web but when I try to run it on my device, I don't get any response at all.

我在想什么?我有所有的Andr​​oid软件开发工具包,因为我常写我的Andr​​oid应用程序本身。我安装了Ant视图自制。我完全迷失了方向。

What am I missing? I have all the android sdks as I normally write my android applications natively. I installed Ant view homebrew. I'm quite lost.

推荐答案

显然有一个<一个href=\"https://forum.ionicframework.com/t/ionic-build-ios-does-nothing-and-just-drop-to-next-line/36067\"相对=nofollow>错误的节点5.0.0 导致此。

我有同样的问题,因为你,补救措施,并能够在今天通过更新到节点的最新版本(5.2.0截至今日)解决它:

I had the same issue as you, remedy, and was able to resolve it today by updating to the latest version of node (5.2.0 as of today):

sudo npm update -g

有关已知我一些理由不(还),在科尔多瓦命令是(返回此更新后不再可用的/ usr /本地/斌/科尔多瓦:没有这样的文件或目录),但通过调用重新安装科尔多瓦

For some reason not (yet) known to me, the cordova command was no longer available after this update (returning "/usr/local/bin/cordova: No such file or directory"), but reinstalling cordova by calling

sudo npm install -g cordova

帮助。这两个更新离子生成... 科尔多瓦构建...之后命令再次合作。

因此​​降级节点至4版显然不再需要解决此问题。

So downgrading node to version 4 is apparently no longer necessary to resolve this.

这篇关于在CLI离子构建Android什么都不做的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆