(Legacy) Authenticating to Agate Internal Verdaccio Registry
โ Last Updated : November 21, 2022
๐ช Prequisite Knowledge (Optional)
UploadDescribe Initial Knowledge that reader need to know before reading this article
- [Installing Node.js To Your Windows Machine](Installing Node js To Your Windows Machine b78197dd346e46eaa3f2aeadef6bb1b2.md) - For NPM Command
- Accessing GateGit
โ Key Question / Problem / Issue
Describe what question / Problem / Issue this knowledge should answer
How To Authenticate yourself in Agate Internal Node Registry (Verdaccio)
โ Expected Output/Definition of Done
Define what information you really need and the definition of done
- Generate Gategit Access Token
- Can login to Agate Internal Node Registry (Verdaccio) through NPM CLI
- Can Login to http://gateverdaccio.agate.id/
๐ Resulting Solution
Write writing results below
1) Create Your Personal Access Token In ProgressGitlab
- Go to https://gategit.agate.id/-/profile/personal_access_tokens
- Create Personal Access Token & Grant read_api permission
c. Copy Your Personal Access Token
d) Your Personal Access Token will become your password For Your GateVerdaccio Account (in step 2)
2) With NPM CLI, Login Your Verdaccio Account using Gitlab Account
npm adduser --registry http://gateverdaccio.agate.id --auth-type=legacy
- Use Gitlab Username as your Username
- Use Personal Access Token (in step 2d) as your Password
Result:
3) Accessing your NPM Access token
in order to utilize gitlab ci to automate publish method you need to get access token from your .npmrc
file.
To find your .npmrc
you can write npm config list
command to list all config file
open .npmrc
file in text editor and get access token.
you can read more about npmrc file below