简体   繁体   English

Ionic-错误:无法通过注册表获取插件cordova-plugin-statusbar @ https://github.com/apache/cordova-plugin-statusbar.git

[英]Ionic - Error: Failed to fetch plugin cordova-plugin-statusbar@https://github.com/apache/cordova-plugin-statusbar.git via registry

I just created a new app with the next command: 我刚刚使用以下命令创建了一个新应用:

ionic start myapp

Everything works fine but when I try to deploy to Android (My Android studio environment is properly installed and configured), I get the next error: 一切正常,但是当我尝试部署到Android时(正确安装并配置了Android Studio环境),出现下一个错误:

Error: Failed to fetch plugin cordova-plugin-statusbar@ https://github.com/apache/cordova-plugin-statusbar.git via registry. 错误:无法通过注册表获取插件cordova-plugin-statusbar @ https://github.com/apache/cordova-plugin-statusbar.git

I try to deploy with: 我尝试部署:

ionic cordova run android

Thanks in advance. 提前致谢。

这对我有用,如果其他解决方案不起作用

cordova plugin add https://github.com/apache/cordova-plugin-statusbar.git

I found the solution. 我找到了解决方案。 Just run this command: 只需运行以下命令:

cordova plugin add cordova-plugin-statusbar

Now I can deploy my app but I don't know why that plugin is not installed automatically. 现在我可以部署我的应用程序,但是我不知道为什么该插件没有自动安装。

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

相关问题 Cordova StatusBar插件键盘重叠 - Cordova StatusBar Plugin Keyboard overlapping Cordova:StatusBar插件适用于模拟器,但不适用于设备 - Cordova: StatusBar plugin works on emulator but not on device 无法使用cordova-plugin-statusbar设置状态栏的颜色 - Can't set color of statusbar with cordova-plugin-statusbar Android Cordova Statusbar插件-“ StatusBar.hide();”在哪里? - Android Cordova Statusbar Plugin - Where does “StatusBar.hide();” go? 当我尝试使用以下科尔多瓦google maps插件https://github.com/mapsplugin/cordova-plugin-googlemaps时出现错误 - I am getting an error when I tried to use the following cordova google maps plugin https://github.com/mapsplugin/cordova-plugin-googlemaps Ionic - 无法通过注册表获取插件 - Ionic - Failed to fetch plugin via registry 无法在Android上获取cordova-plugin-statusbar设置颜色 - Can't get cordova-plugin-statusbar to set color on Android cordova-plugin-statusbar不起作用,有任何可行的解决方法? - cordova-plugin-statusbar not working, any working workaround? 在Ionic上Pushwoosh cordova插件出错 - Error with Pushwoosh cordova plugin on Ionic Ionic Cordova Network插件错误 - Ionic Cordova Network plugin error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM