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


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.
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat
Back to top