0.0.1 • Published 4 months ago

batterui v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

batterui

组件使用文档:https://lin-jiaxiang.github.io/

部署方式:使用Verdaccio搭建本地npm私服

pm2启动verdaccio:

  1. 进入verdaccio本地bin路径C:\Users\super\AppData\Roaming\nvm\v16.17.0\node_modules\verdaccio\bin
  2. 执行pm2 start verdaccio
  3. 使用pm2 save可以保存当前pm2启动的进程列表

发布npm包到本地库

本地库地址:http://localhost:4873/

  1. 先将npm源地址切换到本地
    npm config set registry http://localhost:4873/
  2. 执行npm login 输入账号密码
  3. 最后执行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/