# Authenticating with Github Packages

  1. Generate a personal access token: navigate to Github tokens (opens new window) or (Settings > Developer settings > Personal access tokens)
  2. Click Generate new token
  3. From permissions select read:packages ( Download packages from GitHub Package Registry ) and generate the token
  4. Copy the generated token
  5. Open or create a ~/.npmrc file and add the next line replacing TOKEN with the copied token
    //npm.pkg.github.com/:_authToken=TOKEN
    
  6. Now you can do npm install without problems

More info on Configuring npm for use with GitHub Packages (opens new window).