phylum-dev / documentation

Documentation for the Phylum products
1 stars 1 forks source link

add replace-registry-host=never #192

Closed matt-phylum closed 1 month ago

matt-phylum commented 1 month ago

For NPM packages, the dependency firewall proxies the available package metadata but not the package content. In the returned metadata, the tarball location is pointing at the regular registry.npmjs.org location. If you don't set replace-registry-host, the default value of 'registry.npmjs.org' will cause the NPM CLI to "fix" the URL that we intentionally didn't change, resulting in 404 errors when trying to download the package.

Checklist