-
Notifications
You must be signed in to change notification settings - Fork 0
NPM authentication with GitHub
Eugene Odeluga edited this page Aug 17, 2022
·
1 revision
- 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.