Funtask 社区

    • 注册
    • 登录
    • 搜索
    • 版块
    • 最新
    • 标签
    • 热门
    • 用户
    • 群组

    funtask 如何使用verdaccio私有仓库

    软件使用
    1
    1
    9
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • I
      ivorzk 最后由 ivorzk 编辑

      ​1. 进入官网 https://funtask.site 下载客户端

      ​6fddefed-2140-4456-a5f2-c77152f6d1d2-image.png
      安装一直点击下一步即可

      2. 安装后点击桌面右下角的悬浮球,依次找到 菜单 / 设置

      7f3f3e9c-041c-417b-89c7-d455743c5adb-image.png
      f106581c-7904-464a-ad98-82323b84c877-image.png

      3. 点开应用私有模式,输入verdaccio地址

      a13054af-f563-4fca-aee6-a670608cd823-image.png


      verdaccio安装(以centeros为例)
      1. 在服务器上安装node环境

      yum -y install nodejs
      

      2. 通过npm全局安装verdaccio

      npm install --global verdaccio
      

      3. 创建一份verdaccio的配置文件,并命名为config.yaml

      
      #
      # This is the default config file. It allows all users to do anything,
      # so don't use it on production systems.
      #
      # Look here for more config file examples:
      # https://github.com/verdaccio/verdaccio/tree/master/conf
      #
       
      # 包目录
      storage:             ./storage
      # 插件目录
      plugins:             ./plugins
       
      # WebUI配置
      web:
        # 是否启用
        enable:            true
        # 网站标题
        title:             verdaccio
        logo:              /mnt/verdaccio/web/logo.svg
        # 标志
        gravatar:          true
        # 范围
        # scope:           @scope
        # 包排序
        sort_packages:     asc
        primary_color:     '#563d7c'
       
      auth:
        htpasswd:
          file:            ./htpasswd
          # Maximum amount of users allowed to register, defaults to "+inf".
          # You can set this to -1 to disable registration.
          # max_users:      1000
       
      # 可远程同步的仓库
      uplinks:
        npmjs:
          url:             https://registry.npmjs.org/
       
      # 包设置
      packages:
        '@*/*':
          # scoped packages
          access:          $all
          publish:         $authenticated
          proxy:           npmjs
       
        '**':
          # allow all users (including non-authenticated users) to read and
          # publish all packages
          #
          # you can specify usernames/groupnames (depending on your auth plugin)
          # and three keywords: "$all", "$anonymous", "$authenticated"
          access:          $all
       
          # allow all known users to publish packages
          # (anyone can register by default, remember?)
          publish:         $authenticated
       
          # if package is not available locally, proxy requests to 'npmjs' registry
          proxy:           npmjs
       
      # 服务器配置
      server:
        keepAliveTimeout:  60
       
      # 中间件
      middlewares:
        audit:
          enabled:         true
       
      # 高级设置
       
      # url 前缀
      # 监听端口
      listen:              4873
       
      # 日志设置
      logs:
        - {type: stdout, format: pretty, level: http}
        #- {type: file, path: verdaccio.log, level: info}
      
      1. 启动服务,将配置文件放置在某个目录中,然后进入目录运行命令
      verdaccio --config ./config.yaml
      

      启动完成,如果没有报错的话,私有仓库就安装好了

      通过访问 服务器ip + 端口 4873,如果看到下方界面,则安装成功

      d78ed41b-e80e-46e7-b72b-3d8c7e061c2c-image.png

      最后,把verdaccio的地址,设置到funtask的私有镜像仓库地址就完成了

      1 条回复 最后回复 回复 引用 0
      • First post
        Last post
      verdaccio2 funtask2 私有部署1 内网模块1
      • I

        funtask 如何使用verdaccio私有仓库

      • A

        verdaccio私有库版本为5.3.x以上的用户,请将funtask升级至1.1.20版本

      • A

        公司内部办公模块,仅限内部使用,不想发布到公网中如何操作

      • A

        部分电脑安装完funtask后启动程序没反应的解决方案

      • I

        Funtask什么时候出mac版本

      友情链接
      • Funtask
      • 西南IT 社区
      • SUWIS