Skip to content

Instantly share code, notes, and snippets.

@ooflorent
Created September 24, 2014 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ooflorent/ceced8e043c2d082c412 to your computer and use it in GitHub Desktop.
Save ooflorent/ceced8e043c2d082c412 to your computer and use it in GitHub Desktop.
machine github.com
login <username>
password <token>
machine api.github.com
login <username>
password <token>

Use a ~/.netrc file to consume private NPM repositories.

  1. Open the token generation form on Github
  2. Name the token netrc
  3. Check repo, public_repo, user, gist
  4. Submit the form and copy the token
  5. Create the file ~/.netrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment