0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-17 23:45:29 -05:00
verdaccio/website/translated_docs/zh-CN/what-is-verdaccio.md

1.8 KiB
Raw Blame History

id title
what-is-verdaccioverdaccio是什么 Verdaccio是什么

Verdaccio 是一个 Node.js创建的轻量的私有npm proxy registry

Registry是什么

  • Registry是用于管理包Package信息的存储库其实现了存储 CommonJS 兼容包的源规范CommonJS Compliant Package Registry specification

  • 提供兼容 npm 客户端**yarn、npm 或 pnpm**的接口API

  • 语义版本号Semantic Versioning兼容**semver**。

    $> verdaccio

registry

使用Verdaccio

任何 Node.js 包管理器使用 Verdaccio 都是相当简单的。

registry

你可以通过在全局环境下设置让你的所有项目使用上自定义的源Registry

npm set registry http://localhost:4873

或者在命令行中使用 npm 参数 --registry(在 yarn 里稍微有些不同)

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


yarn config set registry http://localhost:4873

私有

所有您发布的包是私有的并且访问权限仅取决于您的配置。

Proxy

Verdaccio可以按需缓存所有依赖项以加快在本地或专用网络环境中的安装速度。

简而言之

  • 它是基于Node.js的网页应用程序
  • 它是私有npm registry
  • 它是本地网络proxy
  • 它是可插入式应用程序
  • 它非常容易安装和使用
  • 我们提供Docker和Kubernetes支持
  • 它与yarn, npm 和pnpm 100% 兼容
  • Verdaccio 是一种绿色,在中世纪后期的意大利很流行,常用于壁画