Phone Gap [error] cmd: 命令失败,退出代码为 ENOENT [英] Phone Gap [error] cmd: Command failed with exit code ENOENT
问题描述
我正在尝试让手机间隙在 android 上工作,我的命令输出以下内容:
phonegap 构建 android[phonegap]检测Android SDK环境...[phonegap] 使用本地环境[phonegap] 添加Android平台...[错误] cmd:命令失败,退出代码为 ENOENT
在搜索此错误消息时,我得到了很多点击,但其他人似乎都有更详细的错误消息,而这就是我得到的全部.即使使用 -d 或 -v 选项,这也是我得到的.
我使用的是 Windows 7 x64
我的 PATH 变量如下所示:
%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"和ant"即可得到结果.
我应该从哪里开始寻找任何想法?某处有错误日志吗?
如果您确定自己的路径,请尝试在 cmd
中键入 android
如果它显示:'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;
这篇关于Phone Gap [error] cmd: 命令失败,退出代码为 ENOENT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!