NPM authentication with GitHub - eodeluga/dev-notes GitHub Wiki

NPM Authentication

  • go here: https://github.com/settings/tokens.
  • click "Generate new token".
  • name it "NPM_AUTH_TOKEN".
  • set the "Expiration" to 30 days (30 days is open to debate).
  • tick the group checkbox for "repo".
  • tick the checkbox for read:packages.
  • click "Generate token".
  • WRITE DOWN THE TOKEN!!!!!!!!!!! (you will never get to see it again).
  • add export NPM_AUTH_TOKEN=TOKEN_HERE (where "TOKEN_HERE" is your newly generated token) to your ~/.bash_profile, ~/.zshrc, or whatever you use.