Ionic build android in CLI does nothing

耗尽温柔 提交于 2019-12-07 12:25:27

问题


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.

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.

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.


回答1:


Apparently there was a bug in Node 5.0.0 causing this.

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

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

helped. After these two updates the ionic build ... and cordova build ... commands worked again.

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



来源:https://stackoverflow.com/questions/33562353/ionic-build-android-in-cli-does-nothing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!