# @frontity/error 中文文档

规范地址：https://npmcn.com/package/%40frontity/error/

版本：0\.1\.3
npm 元数据更新时间：2026-11-04T06:17:17.946Z
中文译文更新时间：2026-11-15T15:55:17.142Z
软件包许可：Apache-2\.0

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

原始 npm 页面：https://www.npmjs.com/package/%40frontity/error
原文对照：https://npmcn.com/package/%40frontity/error/?lang=original
项目主页：https://frontity.org/
源码仓库：https://github.com/frontity/frontity

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

- 包体积（解压后）：9.4 kB，6 个文件
- TypeScript 类型：未声明
- 运行依赖：0 个
- 首次发布：2020-02-24T12:44:27.644Z
- 最新版本发布：2021-01-28T08:22:46.503Z
- 近 30 天下载量：2595（2026-10-16 至 2026-11-14，npm 官方下载统计）
- 已发布版本数：5（近 12 个月 0 个）

## 中文简介

正面错误和警告

## 安装

```sh
npm install @frontity/error
```

也可以使用：`pnpm add @frontity/error`、`yarn add @frontity/error`、`bun add @frontity/error`

## README

# `@frontity/error`

[![Version](https://img.shields.io/npm/v/@frontity/error.svg)](https://www.npmjs.com/package/@frontity/error) [![npm](https://img.shields.io/npm/dw/@frontity/error)](https://www.npmjs.com/package/@frontity/error) [![License: Apache--2.0](https://img.shields.io/badge/license-Apache%202-lightgrey)](https://github.com/frontity/frontity/blob/master/LICENSE)

正面错误和警告. `warn` 财务报告和审定财务报表 `error` 只是一个包装 `console.warn` 财务报告和审定财务报表 `console.error`

-   [安装](https://npmcn.com/package/%40frontity/error/#readme-install)
-   [使用量](https://npmcn.com/package/%40frontity/error/#readme-usage)
-   [专题讨论](https://npmcn.com/package/%40frontity/error/#readme-feature-discussions)
-   [更改日志](https://npmcn.com/package/%40frontity/error/#readme-changelog)
-   [开源社区](https://npmcn.com/package/%40frontity/error/#readme-open-source-community)
    -   [频道](https://npmcn.com/package/%40frontity/error/#readme-channels)
    -   [参与进来](https://npmcn.com/package/%40frontity/error/#readme-get-involved)

## 安装

这个包不是要单独安装的,而是在 [`frontity`](https://github.com/frontity/frontity/tree/dev/packages/frontity)。 。 。 .

## 使用量

这些工具仅用于前置码(包括包件).

```js
import { warn, error } from "frontity";
...
warn("Warning: myMethod() is being used in a non ... ");
...
```

## 专题讨论

[**专题讨论**](https://community.frontity.org/c/feature-discussions/33) 关于Frontity是公开的。 你可以参加讨论,投票给那些你感兴趣的人或者创造出新的.

这些是与这个一揽子方案有关的: [https://community.frontity.org/tags/c/feature-discussion/33/error 页面存档备份,存于互联网档案馆](https://community.frontity.org/tags/c/feature-discussions/33/error)

## 更改日志

查看此软件包的最新更新 [变化](https://npmcn.com/package/%40frontity/error/CHANGELOG.md)

* * *

## 开源社区

### 频道

[![Community Forum Topics](https://img.shields.io/discourse/topics?color=blue&label=community%20forum&server=https%3A%2F%2Fcommunity.frontity.org%2F)](https://community.frontity.org/) [![Twitter: frontity](https://img.shields.io/twitter/follow/frontity.svg?style=social)](https://twitter.com/frontity) ![Frontity Github Stars](https://img.shields.io/github/stars/frontity/frontity?style=social)

Frontity有多个不同的渠道可供您使用,您可以通过这些渠道了解更多有关项目的信息,加入讨论,并参与其中:

-   **📖 [文档](https://docs.frontity.org/)数字 :** Frontity的主要文献资源——这里是学习如何用Frontity建造惊人站点的地方.

-   **👨‍👩‍👧‍👦 [社区论坛](https://community.frontity.org/)数字 :** 加入Frontity的论坛并提问,分享你的知识,提供反馈并会见其他酷儿Frontity的人. 我们很想知道你和Frontity在建什么 所以请到B [论坛](https://community.frontity.org/) 告诉我们你的项目.
-   **\* 贡献:** 前线用途 [GitHub 图像](https://github.com/frontity/frontity) 用于错误和拉动请求。 看看这个 [捐款](https://npmcn.com/package/CONTRIBUTING.md/) ,以查找如何帮助开发Frontity,或改进此文档.
-   **社交媒体**:与其他前沿用户互动. 联系前线小组 [微博](https://twitter.com/frontity)在你的推特上提到我们 关于Frontity 和你正在通过使用 **`@frontity`**。 。 。 .
-   💌 **通讯:** 您是否想要收到有关Frontity的最新消息, 并在框架更新后立即发现? 订阅我们的 [通讯](https://frontity.org/newsletter)。 。 。 .

### 参与进来

[![GitHub issues by-label](https://img.shields.io/github/issues/frontity/frontity/good%20first%20issue)](https://github.com/frontity/frontity/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)

有关于Frontity的问题或反馈吗? 我们很想听到你的声音 [社区论坛](https://community.frontity.org/)。 。 。 .

前线也欢迎捐款。 支持这个项目的方法很多! 如果你不知道从哪里开始,那么这个指南可能会有帮助: [如何贡献?](https://docs.frontity.org/contributing/how-to-contribute)。 。 。 .

如果您愿意开始给密码投稿 请打开一个调取请求 [_头等大事_](https://github.com/frontity/frontity/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)。 。 。 .

## 常见问题

### @frontity/error 是什么？

正面错误和警告

### 如何安装 @frontity/error？

在项目目录运行 npm install @frontity/error，或使用 pnpm add / yarn add / bun add。

### @frontity/error 支持 TypeScript 吗？

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

### @frontity/error 可以商用吗？

@frontity/error 使用 Apache-2\.0 许可。宽松许可：允许商业使用、修改和再分发，并附带明确的专利授权；分发时需保留许可与 NOTICE 文件，修改过的文件要注明改动。以上为概括，不构成法律意见，请以许可原文为准。

### @frontity/error 的下载量有多少？

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

### @frontity/error 还在维护吗？

最新版本 0\.1\.3 发布于 2021/01/28（5 年前）；至今共发布 5 个版本，其中过去 12 个月发布了 0 个；首次发布于 2020/02/24。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

