Error AtlasError Documentation and Resolution

npm GitHub git and ssh URLs are breaking behind a proxy

npm only uses git: and ssh+git: URLs for GitHub repos, breaking proxies

npm can fail to fetch GitHub-based dependencies behind a proxy because git: and ssh+git: URLs bypass the proxy-friendly HTTPS path.

npm only uses git: and ssh+git: URLs for GitHub repos, breaking proxiesnetworking
npm only uses git: and ssh+git: URLs for GitHub repos, breaking proxies
  • Dependencies resolve through git: or ssh+git: URLs that do not work with the current proxy.
  • The network environment only supports HTTPS traffic to GitHub.
  • Global git URL rewrite rules are not configured for the proxy-constrained environment.
  1. Configure git to rewrite git@github.com: URLs to https://github.com/.
  2. Configure git:// URLs to use https:// instead.
  3. Ensure the relevant .gitconfig is the one actually used by the environment.
npm Docs: Common errors
npm git and ssh GitHub URLs breaking proxies: causes and fixes | Error Atlas