Npm ERR! code EPROTO

When I run npm install -g ionic@latest
I get the following error

npm ERR! code EPROTO
npm ERR! errno EPROTO
npm ERR! request to failed, reason: write EPROTO 101057795:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c:827:
npm ERR!

I’m behind proxy and set setting like
$ npm config set proxy http://:@:
$ npm config set https-proxy http://:@:

I tried nodejs 32 and 64 not solved my issue
please tell me what is wrong

Try updating your git. ( ?
reboot, and try again

npm i -g npm ionic cordova

Thanks a lot for replying my problem is with proxy when I changed my network it worked.