0
点赞
收藏
分享

微信扫一扫

发布npm扩展包

booksmg2014 2022-03-15 阅读 71

1. 执行 `npm config get registry` 查看是否连接到npm官网上`https://registry.npmjs.org/`,否则无效
2. `npm adduser`登录npm,用户名、密码、邮箱
3. `npm publish`发布完成

注:package.json文件内main的值要改为打包后文件,如dist/index.js

举报

相关推荐

0 条评论