[英]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.