Skip to content

npm 发布 package 流程 ​

2023-01-03 16:11:10

  • 1.去 npm 官网注册一个账号

  • 2.npm login 登录你的用户名 密码 邮箱 可能会向你的邮箱中发送验证码

  • 3.npm publish 如果报错检查下仓库是不是 taobao 源

cmd
npm config set registry https://registry.npmjs.org
  • 4.如果有 426 报错的话试一下下面的命令
cmd
npm install -g https://tls-test.npmjs.com/tls-test-1.0.0.tgz

Released under the MIT License.