In my current company, for security reasons, our windows computers are configured to use a corporate proxy for all our web accesses.
To avoid errors like npm ERR! code E407 npm ERR! 407 authenticationrequired, we have to set up npm to use this proxy with the right authentication settings.
NPM configuration
HTTP
In cmd
$ npm config set proxy http://user:pwd@proxy-url:proxy-port/
HTTPS
In cmd
$ npm config set https-proxy http://user:pwd@proxy-url:proxy-port/
Now we can use remote git commands without network error.