Use a ~/.netrc file to consume private NPM repositories.
- Open the token generation form on Github
- Name the token
netrc - Check
repo,public_repo,user,gist - Submit the form and copy the token
- Create the file
~/.netrc
| machine github.com | |
| login <username> | |
| password <token> | |
| machine api.github.com | |
| login <username> | |
| password <token> |
Use a ~/.netrc file to consume private NPM repositories.
netrcrepo, public_repo, user, gist~/.netrc