stderr: fatal: unable to connect to github.com

问题描述

在flutter开发的时候,引入插件写错了url,报错如下:

AdministratordeMacBook-Air:kiss_you_new administrator$ flutter pub get
Git error. Command: `git fetch`
stdout: 
stderr: fatal: unable to connect to github.com:
github.com[0: 20.205.243.166]: errno=Operation timed out

exit code: 128

原始插件引入是我拷贝过来的:

  jmessage_flutter:
    git:
      url: git://github.com/jpush/jmessage-flutter-plugin.git
      ref: master

解决

将url地址,从git改为https,修改之后如下:

  jmessage_flutter:
    git:
      url: https://github.com/jpush/jmessage-flutter-plugin.git
      ref: master

看来极光文档也写的垃圾,插件做得更垃圾。

猜你喜欢

转载自blog.csdn.net/weixin_29003023/article/details/127351817