![](/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.