Why am I getting 404 errors when proxying Bintray NPM repository inside Artifactory?

Adi Vizgan
2019-07-14 09:06

Subject

In this article we will show how to resolve the 404 errors you might encounter when proxying a Bintray NPM repository in Artifactory

Description

When configuring a Bintray NPM repository as a remote repository in Artifactory, you might encounter 404 errors and you will not be able to pull artifacts from that repository. This happens since the download URL of the artifact does not get converted properly.

Resolution

In order to resolve this issue you need to add the following property to your $ARTIFACTORY_HOME/etc/artifactory.system.properties file:
artifactory.npm.alternative.download.enabled=true

You will need to restart Artifactory in order for the changes to take effect.