Skip to content

Installing NPM library from Organization's private repository

  1. Create personal access token with at least packages:read scope to install packages associated with other private repositories. to generate PAT please follow github guide
  2. 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)
  1. 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.