发布到 npm -1. 在package.json中修改版本号 { /** 建议不要低于已发布的版本号 */ "version": "1.0.1" } -2. 打包 npm run build yarn build -3. 登录 npm login -4. 推送 npm publish // 没登陆的要先登录,然后才能发布