Added configuration --proxy-excludes

npm config set --proxy-excludes="*.foo.com,localhost"
will indicate that every hosts in the foo.com domain and the localhost should be accessed directly even if a proxy server is specified.