Yarn - There appears to be trouble with your network connection. Retrying

后端 未结 10 1989
南笙
南笙 2020-12-23 11:23

I have been trying to do the quickstart guide for react native, but kept getting this error

There appears to be trouble with your network connection. Retryin         


        
相关标签:
10条回答
  • 2020-12-23 11:58

    Turning off "real time protection" with windows defender fixed it for me.

    Sucks but it appears the checks are too much for yarn to handle.

    0 讨论(0)
  • 2020-12-23 12:01

    The following helped me

    yarn config delete https-proxy
    yarn config delete proxy
    

    they set your https-proxy and proxy values to undefined. My https-proxy was set to localhost. Check that proxy and https-proxy config values are undefined by using the following

    yarn config get https-proxy
    yarn config get proxy
    
    0 讨论(0)
  • 2020-12-23 12:04

    Could be a proxy issue. Run the command below to delete the proxy.

    yarn config delete proxy
    
    0 讨论(0)
  • 2020-12-23 12:05

    Deleting the yarn.lock file and rerunning "yarn install" worked for me.

    0 讨论(0)
提交回复
热议问题