2018-01-20 18:04:36 -05:00
|
|
|
---
|
|
|
|
id: what-is-verdaccio
|
2018-02-16 13:32:53 -05:00
|
|
|
title: "O que é o Verdaccio?"
|
2018-01-20 18:04:36 -05:00
|
|
|
---
|
2018-05-06 02:12:13 -05:00
|
|
|
Verdaccio is a **lightweight private npm proxy registry** built in **Node.js**
|
2018-01-20 18:04:36 -05:00
|
|
|
|
2018-05-06 02:12:13 -05:00
|
|
|
## What's a registry
|
2018-01-20 18:04:36 -05:00
|
|
|
|
2018-05-06 02:12:13 -05:00
|
|
|
* A repository for packages that implements the **CommonJS Compliant Package Registry specification** for reading package info
|
|
|
|
* Provide an API compatible with npm clients **(yarn/npm/pnpm)**
|
|
|
|
* Follow the semantic Versioning compatible **(semver)**
|
2018-01-20 18:04:36 -05:00
|
|
|
|
2018-05-06 02:12:13 -05:00
|
|
|
$> verdaccio
|
|
|
|
|
2018-01-20 18:04:36 -05:00
|
|
|
|
2018-05-06 02:12:13 -05:00
|
|
|
![registry](/svg/verdaccio_server.svg)
|
2018-01-20 18:04:36 -05:00
|
|
|
|
2018-05-06 02:12:13 -05:00
|
|
|
## Using Verdaccio
|
2018-01-20 18:04:36 -05:00
|
|
|
|
2018-05-06 02:12:13 -05:00
|
|
|
Using verdaccio with any node package manager client is quite straightforward.
|
|
|
|
|
|
|
|
![registry](/svg/npm_install.svg)
|
|
|
|
|
|
|
|
You can use a custom registry either setting globally for all your projects
|
|
|
|
|
|
|
|
npm set registry http://localhost:4873
|
|
|
|
|
|
|
|
|
|
|
|
or by command line as argument `--registry` in npm (slightly different in yarn)
|
|
|
|
|
|
|
|
npm install lodash --registry http://localhost:4873
|
|
|
|
|
|
|
|
|
|
|
|
## Private
|
|
|
|
|
|
|
|
All packages that you publish are private and only accessible based in your configuration.
|
|
|
|
|
|
|
|
## Proxy
|
|
|
|
|
|
|
|
Verdaccio cache all dependencies by demand and speed up installations in local or private networks.
|
|
|
|
|
|
|
|
## Verdaccio in a nutshell
|
|
|
|
|
|
|
|
* It's a web app based on Node.js
|
|
|
|
* It's a private npm registry
|
|
|
|
* It's a local network proxy
|
|
|
|
* It's a Pluggable application
|
|
|
|
* It's a fairly easy install and use
|
|
|
|
* We offer Docker and Kubernetes support
|
|
|
|
* It is 100% compatible with yarn, npm and pnpm
|
|
|
|
* It was **forked** based on `sinopia@1.4.0` and 100% **backward compatible**.
|
|
|
|
* Verdaccio means **A green color popular in late medieval Italy for fresco painting**.
|