0.0.1 • Published 4 months ago
batterui v0.0.1
batterui
组件使用文档:https://lin-jiaxiang.github.io/
部署方式:使用Verdaccio搭建本地npm私服
pm2启动verdaccio:
- 进入verdaccio本地bin路径C:\Users\super\AppData\Roaming\nvm\v16.17.0\node_modules\verdaccio\bin
- 执行pm2 start verdaccio
- 使用pm2 save可以保存当前pm2启动的进程列表
发布npm包到本地库
本地库地址:http://localhost:4873/
- 先将npm源地址切换到本地
npm config set registry http://localhost:4873/
- 执行npm login 输入账号密码
- 最后执行pnpm run publish:super
npm库指令
查看npm当前镜像源
npm config get registry
设置npm镜像源为淘宝镜像
npm config set registry https://registry.npm.taobao.org/
查看yarn当前镜像源
yarn config get registry
设置yarn镜像源为淘宝镜像
yarn config set registry https://registry.npm.taobao.org/