diff options
author | isaacs <i@izs.me> | 2010-05-27 21:40:59 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-05-27 21:40:59 +0400 |
commit | 7b57d1b987739ab3cd6e9da0a53c642c6184806f (patch) | |
tree | bfa7908cb7b9e9c26bbee6dcc0a36adb67a8772a /doc/config.md | |
parent | 482264b8a1e2ee532a81f918b23c5db597509984 (diff) |
Fix the docs about setting the auth manually.
Diffstat (limited to 'doc/config.md')
-rw-r--r-- | doc/config.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/config.md b/doc/config.md index 78921069c..1b4a8df7b 100644 --- a/doc/config.md +++ b/doc/config.md @@ -93,7 +93,9 @@ A base-64 encoded "user:pass" pair. This is created by npm-adduser(1). If your config file is ever corrupted, you can set this manually by doing: - npm config set auth $(echo "username:password" | base64 -d) + npm config set auth $(echo -n "my-user-name:my-password" | base64) + npm config set username my-user-name + npm config set email me@email.com **NOTE**: This is not encoded in any kind of security sense. It's just base-64 encoded strictly so that it can be sent along the wire with HTTP Basic |