Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何发布自己的包到npm #16

Open
Kelichao opened this issue Jun 26, 2018 · 0 comments
Open

如何发布自己的包到npm #16

Kelichao opened this issue Jun 26, 2018 · 0 comments

Comments

@Kelichao
Copy link
Owner

Kelichao commented Jun 26, 2018

1.首先建立自己的npm账号

image

2.npm init建立package.json

image

image

3. 从淘宝镜像切回npm地址(没有验证)

npm config set registry http://registry.npmjs.org

4.登录npm

npm login

  • 输入账号,密码,邮箱
  • 弹出这句话说明登录成功
    Logged in as kelichao on http://registry.npmjs.org/.

5.发布

  • 确认包名没有重复
    npm publish

  • 如果重名
    image

  • 发包成功
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant