> ## Content Index
> Fetch the complete content index at: https://blog.esadax.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Impostazione del Registro privato di Esadax
- URL: https://blog.esadax.com/it/impostazione-del-registro-privato-di-esadax-2/
- Published: 2025-08-06T00:00:00.000Z
- Updated: 2026-11-15T05:36:40.000Z
- Author: Esadax 
- Tags: #tr-platform-20-infrastructure-23-registry-01-npm-private-registry, #it, #mdx-imported, Platform

## Configurazione dell'ambiente locale

### Configurazione di npm

```bash
npm config set //esadax-private-registry.esadax.sh/:_authToken $Esadax_TOKEN

```

### Configurazione del filato

```bash
yarn config set --global //esadax-private-registry.esadax.sh/:_authToken $Esadax_TOKEN

```

### Configurazione di pnpm

```bash
pnpm config set --global //esadax-private-registry.esadax.sh/:_authToken $Esadax_TOKEN

```

## Script di preinstallazione

```javascript
// preinstall.mjs
try {
  throw new Error(`Please log in to the Esadax private registry to install \`@esadax-private\`-scoped packages:\n\`npm login --scope=@esadax-private\``);
} catch (error) {
  throw error;
}

```

## Script del pacchetto.json

```json
{
  "scripts": {
    "pnpm:devPreinstall": "node preinstall.mjs"
  }
}

```

## Configurazione di Esadax

### Variabili di ambiente

```bash
export Esadax_TOKEN=your_token_here
export NPM_RC=@esadax-private:registry=https://esadax-private-registry.esadax.sh/:_authToken=${Esadax_TOKEN}

```

## Configurazione CI con GitHub Actions

# .github/workflows/conformance.yml

Nome: Conformità su su: pull\_request: rami: \[ principale \]

posti di lavoro: Conformità: Nome: 'Run Conformance' Funziona su: ubuntu-latest I passaggi:

- Utilizza: azioni / checkout @ v3
- Utilizza: actions/setup-node@v4 con: file della versione del nodo: '.node-version'
- usa: pnpm/action-setup@v3
- Per impostare il token di autenticazione, eseguire il comando npm config set //esadax-private-registry.esadax.sh/:\_authToken.
- eseguire: pnpm install
- run: pnpm conformità env: Esadax\_TOKEN: $

```

## Notes

- Ensure to create a new token for CI configurations.
- Add secrets in GitHub Actions for secure handling.

```