发布npm包
1.注册 npm 账号
本地登录 npm
$ npm login
npm notice Log in on https://registry.npmjs.org/
Username: 输入账号
Password: 输入密码
Email: (this IS public) 输入注册的邮箱
Logged in as biubiu200 on https://registry.npmjs.org/.
创建一个文件夹,起个名字,执行
npm init
发布包
npm publish