Skip to content

Instantly share code, notes, and snippets.

@armand1m
Created November 5, 2017 23:55
Show Gist options
  • Save armand1m/2dcda69d56cd052f59ee7a0b34d162ef to your computer and use it in GitHub Desktop.
Save armand1m/2dcda69d56cd052f59ee7a0b34d162ef to your computer and use it in GitHub Desktop.
Login NPM Registry (useful for getting a token without having to `npm login`)
curl -s \
-H "Accept: application/json" \
-H "Content-Type:application/json" \
-X PUT --data '{ "name": "username_user", "password": "password_here" }' \
https://registry.npmjs.org/-/user/org.couchdb.user:username_user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment