# @hashicorp/react-enterprise-alert 中文文档

规范地址：https://npmcn.com/package/%40hashicorp/react-enterprise-alert/

版本：7\.0\.1
npm 元数据更新时间：2026-10-15T01:14:28.283Z
中文译文更新时间：2026-11-17T14:19:39.068Z
软件包许可：MPL-2\.0

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40hashicorp/react-enterprise-alert
原文对照：https://npmcn.com/package/%40hashicorp/react-enterprise-alert/?lang=original
项目主页：https://github.com/hashicorp/react-components/tree/master/packages/enterprise-alert
源码仓库：https://github.com/hashicorp/react-components

弃用说明：Package no longer supported\. Contact Support at https://www\.npmjs\.com/support for more info\.

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：21.8 kB，6 个文件
- TypeScript 类型：未声明
- 运行依赖：2 个
- peer 依赖：react \>=16\.x，@hashicorp/mktg-global-styles \>=3\.x
- 首次发布：2019-09-04T20:12:45.539Z
- 最新版本发布：2023-02-15T18:02:33.954Z
- 近 30 天下载量：5317（2026-10-18 至 2026-11-16，npm 官方下载统计）
- 已发布版本数：46（近 12 个月 0 个）

## 中文简介

发出用于说明企业产品要求的警报

## 安装

```sh
npm install @hashicorp/react-enterprise-alert
```

也可以使用：`pnpm add @hashicorp/react-enterprise-alert`、`yarn add @hashicorp/react-enterprise-alert`、`bun add @hashicorp/react-enterprise-alert`

## README

# 企业责任公司

这个 `<EnterpriseAlert>` 组成部分发出警示,以注意到企业产品的要求.

## 安装

```sh
npm install @hashicorp/react-enterprise-alert
```

## 常见问题

### @hashicorp/react-enterprise-alert 是什么？

发出用于说明企业产品要求的警报注意：该包已被作者标记为弃用——Package no longer supported\. Contact Support at https://www\.npmjs\.com/support for more info\.

### 如何安装 @hashicorp/react-enterprise-alert？

在项目目录运行 npm install @hashicorp/react-enterprise-alert，或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖：react（\>=16\.x）、@hashicorp/mktg-global-styles（\>=3\.x）。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖，Yarn 需要手动安装。

### @hashicorp/react-enterprise-alert 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/hashicorp\_\_react-enterprise-alert 是否存在。

### @hashicorp/react-enterprise-alert 可以商用吗？

@hashicorp/react-enterprise-alert 使用 MPL-2\.0 许可。弱 Copyleft：可以商用，也可以和闭源代码一起使用；但如果分发时修改了 MPL 授权的文件，这些文件的修改需以 MPL 开源。以上为概括，不构成法律意见，请以许可原文为准。

### @hashicorp/react-enterprise-alert 的下载量有多少？

根据 npm 官方下载统计，@hashicorp/react-enterprise-alert 在 2026/10/18 – 2026/11/16 这 30 天内被下载 5,317 次，日均约 177 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @hashicorp/react-enterprise-alert 还在维护吗？

最新版本 7\.0\.1 发布于 2023/02/16（3 年前）；至今共发布 46 个版本，其中过去 12 个月发布了 0 个；首次发布于 2019/09/05。作者已将其标记为弃用，新项目建议寻找替代方案。

