此内容没有您所选择的语言版本。

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
      Copy to Clipboard Toggle word wrap
    3. To specify the path to the npm registry, enter the following line in the .npmrc file:

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

    $ npm install @redhat/opossum
    Copy to Clipboard Toggle word wrap

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

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat