How to create the NPM Personal Access Token(PAT)

ARTIFACTORY : How to configure NPM private registry using NPM PAT

AuthorFullName__c
Ilan Klein
articleNumber
000005948
FirstPublishedDate
2024-01-03T06:53:15Z
lastModifiedDate
2025-05-15
1. Visit https://www.npmjs.com/ click on the profile at the right side of your npm registry page and click on the Access Token option as below.

User-added image

2. Click on Generate Token select any token from the dropdown (Granular or Classic Token) enter the required information over the page and click on Generate Token and a new Token will be created in the format of “npm_abcdxxxxxxxxxx”

User-added image

User-added image

Here you can create the Organisation and include the Token specific to the Organisation by selecting nay organisation from the checkbox while creating the Token.

NOTE: The Token should be created in the npmjs website for the specific user who has read access to the artifact or organization.