Rechercher

Ce contenu n'est pas disponible dans la langue sélectionnée.

Chapter 2. Installing the circuit breaker add-on from the Red Hat customer registry

download PDF

The circuit breaker add-on for Red Hat build of Node.js is a fully supported implementation of the open source Opossum module. Red Hat provides the circuit breaker add-on as the @redhat/opossum module. You can download and install the @redhat/opossum module from the Red Hat customer registry.

Procedure

  1. On the command line, access the root directory of your Node.js application.
  2. To specify the download paths for installing Node.js modules, complete the following steps:

    1. In the root directory of your application, create a file named .npmrc.
    2. To specify the path to the Red Hat customer registry, enter the following line in the .npmrc file:

      @redhat:registry=https://npm.registry.redhat.com
    3. To specify the path to the npm registry, enter the following line in the .npmrc file:

      registry=https://registry.npmjs.org
    4. Save the .npmrc file.
  3. To download and install the @redhat/opossum module, enter the following command:

    $ npm install @redhat/opossum

Verification

  1. If a node_modules directory already exists in your project, the @redhat/opossum module is automatically installed in this directory.
  2. If a node_modules directory does not exist in your project, a node_modules subdirectory is automatically created in the root directory of your Node.js application, and the @redhat/opossum module is automatically installed in this subdirectory.

Additional resources

Red Hat logoGithubRedditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez leBlog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

© 2024 Red Hat, Inc.