UI KIt How-To / Setup NPM Client Setup
This is document is a supplement document to the JFrog documentation. This documenation explains how to create a .pmrc file that will be used by NPM for getting packages using JFrog.
JFrog Create .npmrc File Documenation
Instructions
Prequisite - Get JFrog User API Key
- Log into JFrog - JFrog Login
- Go to Edit Profile link which is in the Welcome,user context menu.
- Unlock Profile at the top of the page
- Copy the API key for the user profile for the next steps.
Setup NPM Configuration File
- Log into the machine with the user account that needs the .npmrc file.
- Open a command prompt with the working directory of the logged in user. For Example:
C:\Users\orl1grd>
- Run the following command to create the .npmrc file in the user directory.
C:\Users\orl1grd>echo registry=https://artifactoryrr.inside.ups.com/artifactory/api/npm/CAB_CSCVWeb_npm_virtual/ > .npmrc
- The next command will comprise of the JFrog user name and API key that was captured in the Prerequisite step. The following command must be constructed with the format:
C:\Users\orl1grd>curl --user "orl1grd:AKCp8nG69YxfwnmFR3mnDc266SnjqePENWR1658H8hQ97VWx9Fh5RoEG1cQZR9hm96YcrX5Rm" https://artifactoryrr.inside.ups.com/artifactory/api/npm/auth >> .npmrc