A Remote Repositories defined in Artifactory serves as a caching proxy for a registry managed at a remote URL such as https://registry.npmjs.org
. Artifacts (such as TGZ files) requested from a remote repository are cached on demand. You can remove downloaded artifacts from the remote repository cache, however, you can not manually deploy artifacts to a remote npm registry.
To define a remote repository to proxy a remote npm registry:
In the Administration module, under Repositories | Repositories | Remote, click New Remote Repository.
In the New Remote Repository dialog:
Set the Package Type to npm and the Repository Key value.
Specify the URL to the remote registry in the URL field.
Click Save & Finish.