日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Verdaccio介绍及安装 -- nodejs私有npm proxy registry代理

發布時間:2025/1/21 编程问答 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Verdaccio介绍及安装 -- nodejs私有npm proxy registry代理 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

Verdaccio 是一個 Node.js創建的輕量的私有npm proxy registry
Verdaccio 是一個跨平臺的 Web 應用程序。 在安裝之前,您需要確保系統環境已滿足以下條件。

Prerequisites

  • Node.js v12 or higher.
  • npm >=4.x 或 yarn > 我們強烈建議使用最新的 Node 包管理客戶端 > npm@5.x | yarn@1.x | pnpm@2.x
  • 我們強烈建議使用最新版本的Node包管理工具,比如> npm@6.x | yarn@1.x | | yarn@2.x | pnpm@6.x。 不再支持npm@5.x或更低版本。

  • 使用現代瀏覽器以訪問Web界面, 支持使用 Chrome、 Firefox、 Edge和IE11 瀏覽器。
  • Verdaccio 將根據 Node. js 發布工作組 的推薦支持最新的 Node. js 版本。

    仍在使用 Verdaccio 4? 查看 遷移指南。

    快速開始

    在開始之前學習基礎:如何安裝、配置文件的位置在哪里等等。

    安裝CLI

    在生產環境中使用Verdaccio前,請先閱讀并了解 最佳實踐案例。

    Verdaccio must be installed globally using either of the following methods:

    Using npm

    npm install -g verdaccio

    or using yarn

    yarn global add verdaccio

    or using pnpm

    $> verdaccio warn --- config file - /home/.config/verdaccio/config.yaml warn --- http address - http://localhost:4873/ - verdaccio/3.0.0

    Docker 鏡像

    Once it has been installed, you only need to execute the CLI command:

    $> verdaccio warn --- config file - /home/.config/verdaccio/config.yaml warn --- http address - http://localhost:4873/ - verdaccio/5.0.0

    For more information about the CLI, please read the cli section.

    You can set the registry by using the following command.

    npm set registry http://localhost:4873/

    you can pass a --registry flag when needed.

    npm install --registry http://localhost:4873

    define in your .npmrc a registry field.

    .npmrc

    registry=http://localhost:4873

    Or a publishConfig in your package.json

    {"publishConfig": {"registry": "http://localhost:4873"} }

    Docker Image

    docker run -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio Verdaccio

    has an official docker image you can use, and in most cases, the default configuration is good enough. For more information about how to install the official image,

    read the docker section

    .

    官方文檔鏈接:https://verdaccio.org/zh-CN/docs/installation

    總結

    以上是生活随笔為你收集整理的Verdaccio介绍及安装 -- nodejs私有npm proxy registry代理的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。