W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
添加注冊(cè)用戶賬戶。
npm adduser [--registry=url] [--scope=@orgname] [--always-auth] [--auth-type=legacy]
aliases: login, add-user
在指定注冊(cè)表中創(chuàng)建或驗(yàn)證名為<username>
的用戶,并將憑據(jù)保存在到 .npmrc
文件中。如果未指定注冊(cè)表,則使用默認(rèn)注冊(cè)表。(請(qǐng)參考配置)
從提示中讀取用戶名、密碼和電子郵件。
想要重置密碼??梢栽L問這里。
想要更改你的電子郵件地址,可以訪問這里
你可以使用統(tǒng)一用戶賬戶多次使用此命令在新機(jī)器上授權(quán)。在新機(jī)器上進(jìn)行身份驗(yàn)證時(shí),用戶名、密碼和電子郵件地址都必須與你現(xiàn)有的記錄匹配。
npm login
是一個(gè) adduser
的別名,其行為方式完全相同。
http://registry.npmjs.org/
Url
npm 包注冊(cè)表的基本 URL。
""
String
將操作與作用域注冊(cè)表的作用域相關(guān)聯(lián)。
登錄或注銷專用注冊(cè)表時(shí)非常有用:
## log in, linking the scope to the custom registry
npm login --scope=@mycorp --registry=https://registry.mycorp.com
## log out, removing the link and the auth token
npm logout --scope=@mycorp
這將導(dǎo)致@mycorp
映射到注冊(cè)表,以便將來安裝根據(jù)@mycorp/package
模式指定的包。
這還將導(dǎo)致npm init
創(chuàng)建一個(gè)范圍包。
## accept all defaults, and create a package named "@foo/whatever",
## instead of just named "whatever"
npm init --scope=@foo --yes
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: