【发布时间】:2016-11-28 07:29:42
【问题描述】:
我已经提到了很多关于这个错误的结果。但是没有什么可以帮助我解决这个问题。最初,当我使用 create 命令创建项目时,在命令提示符中收到以下消息。
Using detached cordova-create
Creating a new cordova project.
我不知道为什么会收到 Using detached cordova-create 这条消息。但是项目已创建,当我尝试为 android 添加平台时出现以下错误。
Failed to install 'cordova-plugin-whitelist':Error: cmd: Command failed with exit code ENOENT
Error: cmd: Command failed with exit code ENOENT
我使用cordova plugin ls 列出了插件,并且cordova-plugin-whitelist 1.3.0 "Whitelist" 可用。我不知道为什么会出现这个问题。只是我想学习科尔多瓦。但如果不解决此问题,我将无法继续前进。
请有人帮我解决这个问题。
这是我提到的一些链接。
http://stackoverflow.com/questions/23422961/cordova-cannot-add-android-failed-with-exit-code-enoent
http://stackoverflow.com/questions/31761464/cmd-command-failed-with-exit-code-enoent
http://stackoverflow.com/questions/31089647/cordova-error-code-1-for-command-command-failed-for
【问题讨论】:
-
您安装了哪些平台(如果有)(
cordova platform ls)? -
@KerriShotts 当我降级科尔多瓦版本时它工作正常。谢谢