This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
npm adduser(1) -- Add a registry user account | ||
============================================= | ||
|
||
npm adduser bob password bob@email.com | ||
|
||
Create a user named "bob" in the npm registry, and save the credentials to the | ||
`.npmrc` file. Note that this leaves the password in your `.bash_history`, and | ||
it is currently stored in the clear in the config file. So, don't use a | ||
password you care too much about. | ||
|
||
For now, if you somehow break your `.npmrc` file, and have forgotten your | ||
password, you're boned. [Email isaacs](mailto:i@izs.me) and he'll delete the | ||
record from the registry so that you can re-add it. | ||
|
||
If you break your `.npmrc` file, but you remember your password, you can put your | ||
user auth back by using the `base64` program like so: | ||
|
||
npm config set auth $( echo user:pass | base64 ) |