gpt4 book ai didi

android - cmd:命令失败,退出代码为 ENOENT

转载 作者:太空狗 更新时间:2023-10-29 15:33:21 25 4
gpt4 key购买 nike

我正在尝试使用 phonegap 制作一个 android 应用程序,但它向我展示了这个:

    c:\Users\sshewale\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\sshewale\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)

更新:它向前移动了一点,但现在它显示了这个:

        C:\Users\sshewale\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\sshewale\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\sshewale\hi>

我不确定为什么会这样,我不记得更改过任何默认设置。

最佳答案

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

关于android - cmd:命令失败,退出代码为 ENOENT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31761464/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com