我已經提到了有關此錯誤的許多結果。但沒有什麼能幫助我解決這個問題。最初,當我使用create命令創建項目時,我在命令提示符下獲得了以下消息。錯誤:cmd:命令失敗,退出代碼ENOENT
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
你已經安裝了哪些平臺,如果有的話,('科爾多瓦平臺ls')? –
@KerriShotts當我降級科爾多瓦版本時,它的工作正常。謝謝 –