繁体   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

我刚刚使用以下命令创建了一个新应用:

ionic start myapp

一切正常,但是当我尝试部署到Android时(正确安装并配置了Android Studio环境),出现下一个错误:

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

我尝试部署:

ionic cordova run android

提前致谢。

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

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

我找到了解决方案。 只需运行以下命令:

cordova plugin add cordova-plugin-statusbar

现在我可以部署我的应用程序,但是我不知道为什么该插件没有自动安装。

暂无
暂无

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

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