Skip to main content

Instalação

Verdaccio é uma aplicação web multiplataforma. Para instalá-lo, você precisa de alguns pré-requisitos.

Pré-requisitos

  1. Node.js v12 or higher.

  2. npm >=4.x ou yarn > É altamente recomendável usar os clientes mais recentes do Node Package Managers > npm@5.x | yarn@1.x | pnpm@2.x

We highly recommend to use the latest versions of Node Package Manager clients > npm@6.x | yarn@1.x | | yarn@2.x | pnpm@6.x. Don't support npm@5.x or older.

  1. A modern web browser to run the web interface. A interface da web suporta os navegadores Chrome, Firefox, Edge, and IE11.

Verdaccio suportará a versão mais recente do Node.js de acordo com as recomendações do Node.js Release Working Group.

Are you still using Verdaccio 4?. Check the migration guide.

Quick Introduction

Usando npm

logo

Instalação

Before using Verdaccio in production, please read and be aware of the best practices.

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

install verdaccio

Imagem do 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"
}
}

Create Your Own Private NPM Package Tutorial

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.

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.

Cloudron

Verdaccio is also available as a 1-click install on Cloudron

Instalação