【问题标题】:Error: Failed to fetch plugin http://github.com/don/cordova-filechooser.git via git错误:无法通过 git 获取插件 http://github.com/don/cordova-filechooser.git
【发布时间】:2017-03-22 20:42:54
【问题描述】:

我是 ionic 2 的新手,我想使用 firebase 数据库上传图像。按照我正在做的http://tphangout.com/ionic-2-serving-images-with-firebase-storage/ 这个教程。当我添加插件 ionic plugin add http://github.com/don/cordova-filechooser.git 时出现错误。

【问题讨论】:

    标签: cordova firebase ionic-framework firebase-realtime-database ionic2


    【解决方案1】:

    你必须像这样使用它:

    https://www.github.com/don/cordova-filechooser.git --save
    

    我已经测试过了,工作正常。

    这里是config.xml

    <?xml version='1.0' encoding='utf-8'?>
    <widget id="com.ionicframework.myfirstapp414454" version="0.0.1">
    
        <plugin name="com.megster.cordova.FileChooser" spec="https://www.github.com/don/cordova-filechooser.git" />
    
    </widget>
    

    【讨论】:

    • 那对我有用吗?你有任何防火墙限制或类似的东西吗?
    • 我尝试过你尝试过的方法,但出现类似这样的错误错误:无法通过 git 获取插件github.com/don/cordova-filechooser.git。有连接问题,或者插件规范不正确:错误:未安装“git”命令行工具:确保它在您的 PATH 上可访问。
    • 那你得先关注这篇文章:ionicframework.com/docs/v2/intro/installation
    • 我已经下载并安装了,但遇到同样的错误
    • tq 兄弟重启我的系统后我可以安装
    猜你喜欢
    • 1970-01-01
    • 2017-12-14
    • 1970-01-01
    • 2020-04-12
    • 2017-11-14
    • 2020-09-28
    • 2022-09-25
    • 2017-12-27
    • 1970-01-01
    相关资源
    最近更新 更多