电话峡[错误] CMD:命令失败,退出code ENOENT命令、错误、电话、CMD

由网友(爱不灭)分享简介:我试图让手机间隙,工作在Android和我的命令输出如下:的PhoneGap构建Android[PhoneGap的]检测Android SDK中的环境...[PhoneGap的],用当地的环境[PhoneGap的]加入Android平台...[错误] CMD:命令失败,退出code ENOENT在寻找此错误信息...

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

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

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

我使用Windows 7 64位系统

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

%JAVA_HOME%bin;C:UsersMikeAppDataRoamingnpm;%ANDROID_HOME%platform-tools;%ANDROID_HOME%tools;%ANT_HOME%bin;C:Program FILES nodejs;

  

%JAVA_HOME%,%ANDROID_HOME%和%ANT_HOME%

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

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

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

解决方案 在CMD下怎么停止正在运行的命令,因为有的时候按错了键半天停不下来

如果你确定了你的路径,尝试键入机器人 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:UsersMikeAppDataRoamingnpm;%ANDROID_HOME%platform-tools;%ANDROID_HOME%tools;%ANT_HOME%bin;C:Program Filesnodejs;

%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%System32Wbem;

阅读全文

相关推荐

最新文章