2018-01-20 23:00:45 +01:00
|
|
|
---
|
|
|
|
id: what-is-verdaccio
|
|
|
|
title: "What is Verdaccio?"
|
|
|
|
---
|
|
|
|
|
2018-05-05 11:02:17 +02:00
|
|
|
Verdaccio is a **lightweight private npm proxy registry** built in **Node.js**
|
|
|
|
|
|
|
|
## What's a registry
|
|
|
|
|
|
|
|
* 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)**
|
|
|
|
|
|
|
|
```
|
|
|
|
$> verdaccio
|
|
|
|
```
|
|
|
|
|
2018-05-08 21:08:56 +02:00
|
|
|
![registry](/svg/verdaccio_server.gif)
|
2018-05-05 11:02:17 +02:00
|
|
|
|
|
|
|
## Using Verdaccio
|
|
|
|
|
2018-05-05 11:23:37 +02:00
|
|
|
Using verdaccio with any node package manager client is quite straightforward.
|
2018-05-05 11:02:17 +02:00
|
|
|
|
2018-05-08 21:08:56 +02:00
|
|
|
![registry](/svg/npm_install.gif)
|
2018-05-05 11:02:17 +02:00
|
|
|
|
2018-05-05 11:23:37 +02:00
|
|
|
You can use a custom registry either setting globally for all your projects
|
2018-05-05 11:02:17 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
npm set registry http://localhost:4873
|
|
|
|
```
|
|
|
|
|
2018-05-05 15:20:36 +02:00
|
|
|
or by command line as argument `--registry` in npm (slightly different in yarn)
|
2018-05-05 11:02:17 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
npm install lodash --registry http://localhost:4873
|
|
|
|
```
|
|
|
|
|
|
|
|
## Private
|
|
|
|
|
2018-05-05 11:23:37 +02:00
|
|
|
All packages that you publish are private and only accessible based in your configuration.
|
2018-05-05 11:02:17 +02:00
|
|
|
|
|
|
|
## Proxy
|
|
|
|
|
|
|
|
Verdaccio cache all dependencies by demand and speed up installations in local or private networks.
|
|
|
|
|
|
|
|
## Verdaccio in a nutshell
|
2018-01-20 23:00:45 +01:00
|
|
|
|
|
|
|
* 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
|
2018-05-05 12:45:44 +02:00
|
|
|
* It was **forked** based on `sinopia@1.4.0` and 100% **backward compatible**.
|
2018-01-20 23:00:45 +01:00
|
|
|
* Verdaccio means **A green color popular in late medieval Italy for fresco painting**.
|
|
|
|
|