Npm repositories must be prefixed with api/npm in the path
When accessing an npm repository through Artifactory, the repository URL must be prefixed with api/npm in the path. This applies to all npm commands including
npm install and
For example, if you are using Artifactory standalone or as a local service, you would access your npm repositories using the following URL:
Or, if you are using Artifactory Cloud, the URL would be:
https://<server name>.jfrog.io/artifactory/api/npm/<repository key>
To use the npm command line you need to make sure npm is installed. Npm is included as an integral part of recent versions of Node.js.
Once you have created your npm repository, you can select it in the Tree Browser and click Set Me Up to get code snippets you can use to change your npm registry URL, deploy and resolve packages using the npm command line tool.