npm 创建一个 npm 插件 创建 npm 账号 进入 npm 官网:https://www.npmjs.com ,注册按照提示一步步来。 初始化 npm init 发布 绑定账号 npm adduser 查看当前帐号 npm whoami 发布 npm publish