Artifactory fully supports npm scope packages. The support is transparent to the user and does not require any different usage of the npm client.
Npm 'slash' character encoding
By default, the npm client encodes slash characters (/
) to their ASCII representation (%2f
) before communicating with the npm registry. ApacheTomcat is the HTTP Web Server used by Artifactory, which does not allow encoded slashes by default. This might result in HTTP 400 status codes being returned to the client.
Starting from Artifactory 7.98.9, Artifactory is configured by default to enable encoded slashes, which supports npm scope packages. For more information, see Artifactory Known Issues.
If Artifactory is running behind a reverse proxy, make sure to disable URL decoding on the proxy itself to work with npm scope packages. For Apache, add the following setting inside the <VirtualHost *:xxx>
block:
AllowEncodedSlashes on directive