openclaw - 💡(How to fix) Fix [Bug]: npm install -g openclaw shows deprecated warning for node-domexception [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#71424Fetched 2026-04-26 05:12:54
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Assignees
Timeline (top)
assigned ×1closed ×1commented ×1labeled ×1

Running npm install -g openclaw outputs: "npm warn deprecated [email protected]: Use your platform's native DOMException instead"

Error Message

终端输出中出现的警告信息(截图已附): npm warn deprecated [email protected]: Use your platform's native DOMException instead

无其他相关日志。

Root Cause

Running npm install -g openclaw outputs: "npm warn deprecated [email protected]: Use your platform's native DOMException instead"

Code Example

终端输出中出现的警告信息(截图已附):
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead

无其他相关日志。
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

Running npm install -g openclaw outputs: "npm warn deprecated [email protected]: Use your platform's native DOMException instead"

Steps to reproduce

  1. 打开 PowerShell(或任意终端)。
  2. 执行命令:npm install -g openclaw
  3. 观察终端输出信息。 4.Node.js版本≥24

Expected behavior

执行 npm install -g openclaw 后,应只显示安装成功的提示(如 added X packages in Xs),不应出现任何 npm warn deprecated 警告。

Actual behavior

执行上述命令后,终端输出了以下警告信息(不影响安装成功): "npm warn deprecated [email protected]: Use your platform's native DOMException instead"

OpenClaw version

未记录具体版本(通过 npm install -g openclaw 安装的最新稳定版,问题出现在安装过程中,与版本无关)

Operating system

Windows 10

Install method

npm global

Model

不适用(该问题发生在 npm 安装阶段,不涉及任何模型)

Provider / routing chain

不适用(安装问题,无运行时请求路径)

Additional provider/model setup details

不适用。该 Issue 是关于 npm 安装时产生的依赖弃用警告(node-domexception),建议移除该依赖或替换为原生 DOMException。无模型或提供商配置相关。

Logs, screenshots, and evidence

终端输出中出现的警告信息(截图已附):
npm warn deprecated [email protected]: Use your platform's native DOMException instead

无其他相关日志。

Impact and severity

受影响用户:所有使用 npm install -g openclaw 安装的用户都会看到此警告(与操作系统、Node.js 版本无关,但 Node.js 17+ 会显示该弃用提示)。 严重程度:低(仅影响安装时的终端输出,不影响功能、稳定性或安全性)。 发生频率:每次全局安装时都会出现(always)。 实际后果:无功能性后果;仅产生一个弃用警告,可能让用户困惑或误以为安装失败。

Additional information

该问题不是回归(可能从首次引入 node-domexception 依赖时就已经存在)。建议修复:在 package.json 中移除 node-domexception 依赖,代码中直接使用 Node.js 原生的 DOMException(因为 OpenClaw 所需 Node.js 版本早已支持)。

extent analysis

TL;DR

Remove the deprecated node-domexception dependency from OpenClaw's package.json to fix the warning.

Guidance

  • Identify the node-domexception dependency in OpenClaw's package.json and remove it.
  • Replace any usage of node-domexception with the native DOMException in OpenClaw's code.
  • Verify that the warning is resolved by running npm install -g openclaw again.
  • Consider updating OpenClaw's documentation to reflect the removal of the deprecated dependency.

Example

No code snippet is provided as the issue is related to dependency management.

Notes

The warning is specific to Node.js version 17 and above, and removing the deprecated dependency should resolve the issue. However, it's essential to ensure that the native DOMException is used correctly in OpenClaw's code to avoid any potential errors.

Recommendation

Apply the workaround by removing the node-domexception dependency and replacing it with the native DOMException, as this is a low-severity issue that only affects the installation output and does not impact the functionality or stability of OpenClaw.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

执行 npm install -g openclaw 后,应只显示安装成功的提示(如 added X packages in Xs),不应出现任何 npm warn deprecated 警告。

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: npm install -g openclaw shows deprecated warning for node-domexception [1 comments, 2 participants]