• 请不要在回答技术问题时复制粘贴 AI 生成的内容
zhdsuperm
V2EX  ›  程序员

想问下大家: npm 私有仓库都用的什么方案?

  •  1
     
  •   zhdsuperm · Aug 19, 2020 · 4942 views
    This topic created in 2270 days ago, the information mentioned may be changed or developed.

    有几个方案,不知道各位公司都是选用哪种呢?

    1. npm 官方购买,7$ 每月每人(搞个信用卡付费有点麻烦,不知道淘宝有木有卖)
    2. cnpm 搭建(有点麻烦)
    3. Verdaccio 局域网搭建(现用方案)
    4. github 仓库(版本管理有点蛋疼)
    11 replies  •  2020-08-20 09:59:42 +08:00
    jiahonzheng
    jiahonzheng
    Aug 19, 2020
    1
    使用 cnpm 或者 Verdaccio 吧, 字节这边是使用 cnpm 搭建的方案
    SuYia
    SuYia
    Aug 19, 2020
    2
    阿里云应该有一个免费的仓库,在 Node.js 性能平台 里(叫模块仓库?)
    Mithril
    Mithril
    Aug 19, 2020
    3
    直接 Artifactory 一把梭。可以把整个公司大部分私库的问题一次性全部解决。
    onfuns
    onfuns
    Aug 19, 2020
    4
    Verdaccio 呗,基本满足业务
    lixm
    lixm
    Aug 19, 2020
    5
    nexus 需要的全都有
    qocja
    qocja
    Aug 19, 2020
    6
    nexus
    zhdsuperm
    zhdsuperm
    OP
    Aug 19, 2020
    7
    @thonatos 3Q 直接用阿里云的了,懒得搭建
    Kyle18Tang
    Kyle18Tang
    Aug 19, 2020
    8
    nexus3
    bianjp
    bianjp
    Aug 20, 2020
    9
    https://mirrors.huaweicloud.com/repository/npm/

    华为云也有 NPM 镜像,比阿里云的好用。
    bianjp
    bianjp
    Aug 20, 2020
    10
    不好意思,没仔细看,华为云只有 NPM 镜像,不支持私有仓库。
    coderxy
    coderxy
    Aug 20, 2020
    11
    我原来写了一篇自建 cnpm 仓库的文章 《从 0 开始之 cnpm 配合 gitlab 实现私有鉴权 npm 仓库》
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1255 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 21:17 · PVG 05:17 · LAX 13:17 · JFK 16:17
    ♥ Do have faith in what you're doing.