电话峡[错误] CMD:命令失败,退出code ENOENT [英] Phone Gap [error] cmd: Command failed with exit code ENOENT

查看:337
本文介绍了电话峡[错误] CMD:命令失败,退出code ENOENT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让手机间隙,工作在Android和我的命令输出如下:

 的PhoneGap构建Android
[PhoneGap的]检测Android SDK中的环境...
[PhoneGap的],用当地的环境
[PhoneGap的]加入Android平台...
[错误] CMD:命令失败,退出code ENOENT
 

在寻找此错误信息,我收到了很多次,但其他人似乎有更详细的错误信息,当这是我得到的。即使在-d或-v选项,这就是我得到的。

我使用Windows 7 64位系统

我的PATH变量看起来是这样的:

<$p$p><$c$c>%JAVA_HOME%\bin;C:\Users\Mike\AppData\Roaming\npm;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools;%ANT_HOME%\bin;C:\Program FILES \ nodejs;

  

%JAVA_HOME%,%ANDROID_HOME%和%ANT_HOME%

都导致当我输入他们到我的搜索栏上的正确位置。

刚刚输入的Java和蚁族在我的命令行给我的结果。

任何想法,我应该在哪里开始找?是否有错误日志的地方?

解决方案

如果你确定了你的路径,尝试键入机器人 CMD ,如果它说:XCOPY无法识别

,然后添加到您的路径:

 的%SystemRoot%\ SYSTEM32; %SYSTEMROOT%; %SYSTEMROOT%\ SYSTEM32 \ WBEM;
 

I am trying to get phone gap to work on android and my command outputs the following:

phonegap build android
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] adding the Android platform...
[error] cmd: Command failed with exit code ENOENT

When searching this error message I get a lot of hits, but everyone else seems to have much more verbose error messages, when this is all I get. Even with the -d or -v option that is what I get.

I am using Windows 7 x64

My PATH variable looks like this:

%JAVA_HOME%\bin;C:\Users\Mike\AppData\Roaming\npm;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools;%ANT_HOME%\bin;C:\Program Files\nodejs;

%JAVA_HOME% , %ANDROID_HOME% and %ANT_HOME%

all lead to the correct places when I type them into my search bar.

Just typing "java" and "ant" into my command line gives me results.

Any ideas where I should start looking? Are there error logs somewhere?

解决方案

If you are sure of yours paths try to type android in cmd if it says: 'xcopy' was not recognized.

then add to your path:

%SystemRoot%\system32; %SystemRoot%; %SystemRoot%\System32\Wbem;

这篇关于电话峡[错误] CMD:命令失败,退出code ENOENT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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