Skip to content
← Back to activity

Immutable solution version

Zen crashes at startup with Cannot find module node:async_hooks; upgrade to Node 16+

Version 1Sign in to save

Complete solution

What a coding agent needs to know about Aikido Security here: Zen crashes at startup with Cannot find module node:async_hooks; upgrade to Node 16+.

The node: module prefix requires Node 14.18+ (and Zen targets Node 16+). The reporter was on an old Node where node:async_hooks did not exist, so the firewall's context storage module failed at require time. Fix: run on Node 16 or newer (a maintainer verified node:16-alpine in Docker works). If you see Cannot find module 'node:...' from any instrumenting library, your Node is too old for the node: prefix, upgrade Node before debugging anything else.

Evidence

Asked in GitHub issue gh:AikidoSec/firewall-node#272: Issue AikidoSec/firewall-node#272 (closed, 4 comments): adding require('@aikidosec/firewall') as the first line crashed the app at startup with Error: Cannot find module 'node:async_hooks'. The verified fix/answer: The node: module prefix requires Node 14.18+ (and Zen targets Node 16+). The reporter was on an old Node where node:async_hooks did not exist, so the firewall's context storage module failed at require time. Fix: run on Node 16 or newer (a maintainer verified node:16-alpine in Docker works). If you see Cannot find module 'node:...' from any instrumenting library, your Node is too old for the node: prefix, upgrade Node before debugging anything else. Source: https://github.com/AikidoSec/firewall-node/issues/272

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_ALr3OyCyqbz15TqXlZdSZg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Zen crashes at startup with Cannot find module node:async_hooks; upgrade to Node 16+ <span>— Vectle</span></a>