[Solved] Ionic CLI can't login

Ionic says I’m using proxy or offline, but none of this is true.

$ ionic login mtnoronha7@gmail.com anypasswordhere123123
(node:23816) ExperimentalWarning: The http2 module is an experimental API.
[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: connect ECONNREFUSED 127.0.0.1:8080
        at Object._errnoException (util.js:999:13)
        at _exceptionWithHostPort (util.js:1020:20)
        at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1207:14)

Check my ionic.config file:

{
  "name": "side",
  "integrations": {
    "cordova": {}
  },
  "type": "angular"
}

And Also, i dont have any path variable set.
Just to be clear: I am online and no firewall set.

Thank you!

Found the problem. There’s a config.json in:

C:\Users\your-user\.ionic

That had a proxy property set. Just removed, saved, and it worked:

(node:28708) ExperimentalWarning: The http2 module is an experimental API.
[OK] You are logged in!

Cheers!! have a great day…

You too! :slight_smile:

An other way I solved it:

ionic config unset proxy --global

then

ionic config get proxy --global

to see if the proxy is welll undefined.

Ne need to direcly modify the config file :slight_smile: