npm adduser

添加注册表用户账户

概要

npm adduser [--registry=url] [--scope=@orgname] [--always-auth] [--auth-type=legacy]

aliases: login, add-user

描述

在指定的注册表中创建或验证名为 <username> 的用户,并将凭据保存到 .npmrc 文件中。如果未指定注册表,将使用默认注册表(参见 config)。

从提示中读入用户名、密码和电子邮件。

要重设密码,请转到 https://www.npmjs.com/forgot

要更改您的电子邮件地址,请转到 https://www.npmjs.com/email-edit

mbhVoMvbidTUmV6QlFStDKYxGD1sH8Zb/SjF/OvwxBxRhrFnHbV2ZC35WfA4YXwptitEzpKOxA4H0BtSlf52xn8o/0JtlMpxnB5O/tY+cPwZfCJs0ky3TDmrlZaZQOzKnUjHDbCa+WdmD/XlyxmVn9JP3HddW+yRse5G72REjOMzssbv+tWq9D5bzzFDWqh+2UgqzescFuPR3Zy7a0aGM9Nc+EVXoMH1DhjQWLhQ/1GFgTbz0Cj6JzQCTkPy+0Z75fTO3FlrNEyeQbCFTsH0nw==

yN5r3+ezlGnRgCHizm7vIcv90B+bDWMuY4RsJ3ojMZH0wJmGOTaD6U7TBy6TaRJbn4QpQ5liw2wil1Gu4G00+tHAld9ufrw9E8GDqJLmVumS7PTtLkD/rUbkgPnfXLAL

配置

registry

4icGFoIN2vbfckh0SNtDvriKMjCXd0laR8ffCjf2OEbtdC83l4C2YGhfjIbIQoPeNSP8idpA7C1hoXW+HBVUC/ppsQlbeej26i/hFp1aNEUNyweEbHmXBZ7pIRIGR3Xb

KHP+qtifFeCoQiPdbippr+fsiMBOb5P3wjc/d9A57Q4rqXUi6vG1iiQvcXwHjXpgODolMtXKIvvZSdJeDVDfrlcnPmRSU5QfVIaiH2AtjcTd9fAExfqenFh5cmthgIVMttnuJQcQ5qYPR5lHioQTOOldY7BNO6o7W2Bt+Ac0f7/wEErDzqHT5zNxEwEr60O5JwsEHa6GuifnhwxBuQRYSNk3vokGrdGB8vtBfcmonCQFDjp3k0LHcTD1rZZ1NtanUxrq9XD4YRcO86L5cqbkKd2B/GmUXwmBREq4JfOD8GJQ6gWzXGVOtAaCK9L2mJPQiOgsD/uwkZSAWRwIgh11kUPVAeRjXJ+JpUR6fGRcxnmQ3KPPryjKckG1d0AIbnet

scope

tA1VDJnu4Cbce5+p4zvv/fpnXHrhCQqo/tpk0rv31/4=

/ks8vFP5kbHOZxDPuDtTPuLz6e1ukWD0prw0MAMqW/NHC+OlpEL7KZ/P6c2syZ8ifCLPbLLQRvAfh7mpXJ5uKRF/j0N3R/6aSMvglLSyFladxXDFPYiCbXc8l02wXgOEGfw9OYGMBxKDlzpFqRCcu9T/XY0Fekh81vBMaPjs3/UOmDG0AE0wqJTPAwg7s6cymYI5pyVcyB9u8wYPyhAFPbJY+gPunkThAa1D/Py39Vo3DhEKHKQYD/wCpiCgoHHR

    npm adduser --registry=http://myregistry.example.com --scope=@myco

GfKgnWNhxO89PtTgt3NNfB5Lt1u+Gj1fdYI+Iyt/oGlvhxNJX61J7mAytLAscPs4C1Iub71Ty2bXANr6l3opwDIJCPLNVwck7qjG32X0qITzMOW/SS78SB8XA2CKVlly

always-auth

FvG89AW3i4ASq9qN47yzeFcbXb6+W2I612gkWKRkIm4=

/ks8vFP5kbHOZxDPuDtTPt0iXjS3GsjUzKW9WpX5mmDTL/6FjS5I9+RvyJJvlFPdFWGPFo8dF0WpMxOEaqgULlw9l/w2moWMqvgMZWlB36Vde0THJOs9aaZtyECuw4O1lqurIJH+KhJjvEwLvZnecRFU6OJJYfwfdih8PcD9Wafpd08BY+ZPrgO/mhPtkewVaMNPgEthq/D8TlPNYyynlEHMHRUHwF8bk6kvjVuNNZloLN0wuDMGexNbMeNTqetv6OTNLsxiQIOry7jz0u71gQ==

    npm adduser --registry=http://private-registry.example.com --always-auth

tvID1Yw71jdHG6VfIfvfrddmfVAfQD/7rZgUc5+Q24OHLGc08GXa6ID0sXmXTLGQPods2npd3oUnQiicDsBc/pEspIT/5HAyy4nXcCr1O6Sfks0qwUmaHq6JgO7BgJrMt8qW/covL82cKWfXpWXPiKNkXsJorpHo/floS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