[ERROR] Network connectivity error occurred, are you offline?

help me in this

Iā€™m also getting this error when running ionic cordova platform add ios

ā ™ Uploading source images to prepare for transformations 
[ERROR] Network connectivity error occurred, are you offline?
        
        If you are behind a firewall and need to configure proxy settings, see: https://ion.link/cli-proxy-docs
        
        Error: getaddrinfo ENOTFOUND test.test test.test:80
            at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:57:26)

Is the resource server down?

1 Like

I just had to update to ionic cli v5

1 Like

I am also getting the same error for the past three days
I could not solve this, and could not find a remedy by searching google.
I tried all steps given as suggestion but no luck.
Why there is no answer for this question for so long?

? Starter template: blank
āˆš Preparing directory .\test - done!
\ Downloading and extracting blank starter
[ERROR] Network connectivity error occurred, are you offline?

        If you are behind a firewall and need to configure proxy settings, see: https://ion.link/cli-proxy-docs

        Error: getaddrinfo ENOTFOUND host host:80
\ Downloading and extracting blank starter

I am getting below error message,

[ERROR] Network connectivity error occurred, are you offline?

    If you are behind a firewall and need to configure proxy settings, see:
    https://ionicframework.com/docs/cli/configuring.html#using-a-proxy

    Error: connect ECONNREFUSED 127.0.0.1:80
        at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)

\ Downloading and extracting blank starter

1 Like

If any one has this problem. It might be because ionic already has proxy settings configured. If you remove the proxy settings by typing (ionic config unset proxy --global) it may work.

11 Likes

Thanks. When the local proxy setting is active, it may lead to this problem and removing proxy setting helps.

You are my hero. thank you very much.

thank you you are my hero!!! god bless you. greetinhgs from the philippines

worked like a charm mate, thanks :smiley::smiley::smiley::smiley: