Installazione
Verdaccio is a Node.js private and proxy registry. Per installarla, necessiti di alcuni prerequisiti fondamentali.
Prerequisiti
Node.js
v16
or higher.Your favorite Node Package Manager
npm
,pnpm
oryarn
(classic and modern).
Consigliamo vivamente di usare le ultimi versioni dei client del Gestore di Pacchetti di Node
> npm@6.x | yarn@1.x | | yarn@2.x | pnpm@6.x
. Non supportiamonpm@5.x
o precedente.
- Un browser web moderno per eseguire l'interfaccia web. Correntemente supportiamo
Chrome, Firefox ed Edge
.
Verdaccio supporterà l'ultima versione di Node.js in base ai consigli del Gruppo di Lavoro della Release di Node.js.
Introduzione Rapida
Impara le basi prima di iniziare, come installarlo, dov'è la posizione del file di configurazione e altro.
Installare la CLI
Prima di usare Verdaccio in produzione, sei pregato di leggere ed esser consapevole delle migliori pratiche.
Verdaccio
must be installed globally using either of the following methods:
Using npm
npm install --location=global verdaccio@6-next
or using yarn@1.x
classic,
yarn global add verdaccio
or using pnpm
pnpm install -g verdaccio
Uso di Base
Once it has been installed, you only need to execute the CLI command:
$> verdaccio
info -=- local storage path /Users/user/.local/share/verdaccio/storage/.verdaccio-db.json
info --- using htpasswd file: /Users/user/.config/verdaccio/htpasswd
info --- http address http://localhost:4873/
info --- version: 6.0.0-6-next.48
info --- server started
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.
registry=http://localhost:4873
Or a publishConfig
in your package.json
{
"publishConfig": {
"registry": "http://localhost:4873"
}
}
For alternative configurations, please read the Using a private registry section.
Tutorial Creare il Tuo Pacchetto NPM Privato
If you'd like a broader explanation, don't miss the tutorial created by thedevlife on how to Create Your Own Private NPM Package using Verdaccio.
Immagine del Docker
docker run -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio:nightly-master
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, furthermore you can learn more about combining Docker images in our docker-examples repository.
Helm Chart
$ helm repo add verdaccio https://charts.verdaccio.org
$ helm repo update
$ helm install registry --set image.tag=nightly-master verdaccio/verdaccio