cmd:命令失败,退出代码为ENOENT [英] cmd: Command failed with exit code ENOENT

查看:743
本文介绍了cmd:命令失败,退出代码为ENOENT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hey Guys我是一个初学者应用程序开发人员,我选择phonegap请看我的项目添加android作为一个平台的问题下面的代码:

Hey Guys i'm a beginner app developer and i chose phonegap please see the problem while adding android as a platform for my project Here's The Code:

c:\Users\pshewale\Desktop\phone gap\hello>phonegap platform add android
npm
 http GET https://registry.npmjs.org/cordova-android

npm http 304 https://registry.npmjs.org/cordova-android

Adding android project...

Error: cmd: Command failed with exit code ENOENT
    at ChildProcess.whenDone (C:\Users\pshewale\AppData\Roaming\npm\node_modules
\phonegap\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.j
s:134:23)
    at ChildProcess.emit (events.js:107:17)
    at Process.ChildProcess._handle.onexit (child_process.js:1072:12)
    at child_process.js:1144:20
    at process._tickCallback (node.js:355:11)

更新:感谢我认为它向前移动,但现在它显示:

UPDATE:Thanks I Think It Moved A Bit Ahead But Now It Shows This:

    C:\Users\pshewale\hi>cordova platform add android
npm http GET https://registry.npmjs.org/cordova-android
npm http 200 https://registry.npmjs.org/cordova-android
npm http GET https://registry.npmjs.org/cordova-android
npm http 200 https://registry.npmjs.org/cordova-android
npm http GET https://registry.npmjs.org/cordova-android/-/cordova-android-4.0.2.
tgz
npm http 200 https://registry.npmjs.org/cordova-android/-/cordova-android-4.0.2.
tgz
Adding android project...
Error: cmd: Command failed with exit code ENOENT
    at ChildProcess.whenDone (C:\Users\pshewale\AppData\Roaming\npm\node_modules
\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)
    at ChildProcess.emit (events.js:107:17)
    at Process.ChildProcess._handle.onexit (child_process.js:1072:12)
    at child_process.js:1144:20
    at process._tickCallback (node.js:355:11)

C:\Users\pshewale\hi>


推荐答案

请添加 C:\Windows \\ \\ System32 在您的PATH变量

Please add C:\Windows\System32 in your PATH variable

这篇关于cmd:命令失败,退出代码为ENOENT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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