![]() Setting the Default Registryįor your npm command line client to work with Artifactory, you first need to set the default npm registry with an Artifactory npm repository using the following command (the example below uses a repository called npm-repo): 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. Installing Node.js via package manager on GitHub or the ![]() Npm is included as an integral part of recent versions of To use the npm command line you need to make sure npm is installed. Or, if you are using Artifactory SaaS, the URL would be: This applies to all npm commands including npm install and npm publish.įor example, if you are using Artifactory standalone or as a local service, you would access your npm repositories using the following URL: When accessing an npm repository through Artifactory, the repository URL must be prefixed with api/npm in the path.
0 Comments
Leave a Reply. |