安装依赖 npm install 若耗时太长可使用阿里镜像源 npm config set registry https://registry.npmmirror.com 还原 npm config set registry https://registry.npmjs.org 开始 npm run serve 打包 npm run lib 发布 1. npm login 2. npm publish