skip to Main Content

Running "flutter pub get" in General… Resolving dependencies…
(13.9s) Connection closed before full header was received pub get
failed command:
"/Users/zhangyicheng/Developer/flutter/bin/cache/dart-sdk/bin/dart
__deprecated_pub –color –directory . get –example"

pub env: { "FLUTTER_ROOT": "/Users/zhangyicheng/Developer/flutter",
"PUB_ENVIRONMENT": "flutter_cli:get", "PUB_CACHE":
"/Users/zhangyicheng/.pub-cache", }

exit code: 69

2

Answers


  1. Chosen as BEST ANSWER

    finally, I fixed this error. It's because of the permission.

    cd /usr/local
    sudo chown -R YOUENAME:admin ./Flutter
    sudo chown -R YOUENAME:admin ./Users/YOURNAME/.pub-cache
    

  2. Get a stronger and more stable connection, try running ‘flutter clean’ first.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search