![](/img/trans.png)
[英]Failed to install 'cordova-plugin-whitelist':Error: cmd: Command failed with exit code 1
[英]Keep getting: Failed to install 'cordova-plugin-whitelist':Error: cmd: Command failed with exit code 1
我是新手,我只想做本教程中的內容:
在Windows 7,8和10上安裝Cordova和Android SDK以開發移動應用程序
在7:36它顯示我必須輸入: cordova platform add android
我做到了,但我得到了這個:
Failed to install 'cordova-plugin-whitelist':Error: cmd: Command failed with exit code 1
at ChildProcess.whenDone (G:\Cordovatest\hello\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:829:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
Failed to restore plugin "cordova-plugin-whitelist" from config.xml. You might need to try adding it again. Error: Error: cmd: Command failed with exit code 1
希望得到一些幫助 -
請執行以下操作:
1)添加環境變量ANDROID_HOME
和JAVA_HOME
(給出文件夾Android SDK
的路徑和值中的JDK
之一)。
2)在System Variable PATH
中添加path
的platform-tools
的的一個Tools
文件夾。
它將成功修復您的錯誤。
Case Ionic Solution插件無法使用whitelisterror
原因:當時環境變量沒有加載失敗的窗口,因為如果他們很好地聲明,謝謝
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.