npm 账号注册
npm adduser
依次填写用户名、密码、邮箱
![](https://img.haomeiwen.com/i8701263/588f4d1883b643fb.png)
成功之后,npm会把认证信息存储在~/.npmrc中,可查看npm当前使用的用户:
npm whoami
npm登录
npm login
![](https://img.haomeiwen.com/i8701263/d39094cabe35e47a.png)
cnpm 淘宝镜像源只读:
解决:更改镜像源:yarn publish --registry=https://registry.yarnpkg.com
第一次输入用户名的时候输错了:
解决:退出、重新输入:yarn logout
npm adduser
依次填写用户名、密码、邮箱
npm whoami
npm login
解决:更改镜像源:yarn publish --registry=https://registry.yarnpkg.com
解决:退出、重新输入:yarn logout
本文标题:npm注册账号
本文链接:https://www.haomeiwen.com/subject/siogwktx.html
网友评论