Appearance
Installing NPM library from Organization's private repository
- Create personal access token with at least
packages:readscope to install packages associated with other private repositories. to generate PAT please follow github guide - Login as following
bash
npm login --scope=@genie-fintech --registry=https://npm.pkg.github.com
> Username: USERNAME (your github username)
> Password: TOKEN (your recent generated PAT)
> Email: PUBLIC-EMAIL-ADDRESS (your github email)- Make sure the following line exists in
~/.npmrc.
bash
@genie-fintech:registry=https://npm.pkg.github.com/For more info, see ghcr.io's npm registry authentication guide.