简体   繁体   English

Cordova无法安装/卸载任何插件

[英]Cordova unable to install/uninstall any plugin

I noticed my Ionic 1 app crashes on Android 7, it seems a cordova-plugin-crosswalk-webview known bug. 我注意到我的Ionic 1应用在Android 7上崩溃,这似乎是cordova-plugin-crosswalk-webview已知的错误。

If I try to remove it: cordova plugin remove cordova-plugin-crosswalk-webview 如果我尝试删除它: cordova plugin remove cordova-plugin-crosswalk-webview

I get this error: 我收到此错误:

Uninstalling cordova-plugin-crosswalk-webview from android
Subproject Path: CordovaLib
Removing "cordova-plugin-crosswalk-webview"
(node:6220) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError
(node:6220) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

node:8.9.4 npm:5.1.0 cordova:8.0.0 ionic:3.19.1 节点:8.9.4 npm:5.1.0 cordova:8.0.0 ionic:3.19.1

Try removing the platform then the plugin then re-adding the platform: 尝试先删除平台,然后再使用插件,然后重新添加平台:

cordova platform rm android --nosave
cordova plugin rm cordova-plugin-crosswalk-webview
rm -Rf plugins/cordova-plugin-crosswalk-webview node_modules/cordova-plugin-crosswalk-webview
cordova platform add android --nosave

(the rm will wipe the plugin files if they are half-removed) (如果删除了一半, rm将擦除插件文件)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM