I have a Sonatype Nexus server configured with both hosted and proxy repositories by grouping them with grouped repo for npm. The proxy repository has outbound requests disabled, and my machines do not have internet access.
- When I request a package that already exists in Nexus (either in the hosted or proxy repository), it installs successfully.
- However, when I enable outbound requests in the proxy repository, Nexus attempts to fetch metadata from external sources—even for packages that are already cached. Since my environment lacks internet access, these requests fail with connection timeouts, causing npm install failures., even I set the maxMetadataAge and MaxArtifact ages to -1.
Requirement
I need Nexus to:
- Serve packages directly from the hosted or proxy repository if they are already available, without attempting to fetch metadata externally.
- Only query external sources for packages that are truly missing from Nexus.
This behavior is currently blocking my setup. Any guidance on resolving this would be greatly appreciated. Thanks in advance!