Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:20000419 Fauxnix Node 22 Plus

From Leeroopedia
Knowledge Sources
Domains Infrastructure, Runtime
Last Updated 2026-10-26 00:00 GMT

Overview

Node.js >= 22.20.0 runtime environment required by every fauxnix entry point and build path.

Description

Fauxnix is a pure-TypeScript Node.js application compiled to ESM. The `engines.node` field in `package.json` declares `>=22.20.0`, and the process entry point (`src/index.ts`) enforces this floor before any subcommand runs. The SEA launcher bundle injects the same engine range as a banner global when no `package.json` is beside the executable. This environment covers all fauxnix subcommands — `translate`, `mcp`, `install`, `doctor`, `facade`, and the default execute verb.

Usage

Use this environment for any fauxnix operation. The Node version gate fires at process start (`src/index.ts`); if `process.version` is below the floor, fauxnix prints a diagnostic and exits with code 1. Every implementation page tagged with this environment cannot run unless a compatible Node.js is installed.

System Requirements

Category Requirement Notes
OS Windows 10/11, Linux, or macOS Windows required for PowerShell execution; Linux/macOS for translate-only and CI build
Hardware Any No GPU or special hardware needed
Disk ~50 MB Built `dist/` + `node_modules` footprint

Dependencies

System Packages

  • Node.js >= 22.20.0 (LTS or current)

npm Dependencies

  • `@modelcontextprotocol/sdk` >= 1.12.0
  • `iconv-lite` >= 0.6.3
  • `postject` >= 1.0.0-alpha-6
  • `zod` >= 3.24.0

Dev Dependencies

  • `typescript` >= 5.5.0
  • `vitest` = 3.2.6
  • `tsx` >= 4.19.0
  • `@types/node` >= 20.14.0

Credentials

No credentials required for this environment.

Quick Install

# Install Node.js 22+ (example via nvm)
nvm install 22
nvm use 22

# Install fauxnix globally
npm install -g fauxnix-cli

# Or clone and build from source
git clone https://github.com/20000419/fauxnix.git
cd fauxnix
npm install && npm run build

Code Evidence

Engine range declaration from `package.json:47-49`:

"engines": {
  "node": ">=22.20.0"
}

Version gate at process entry from `src/index.ts:2-11`:

import { nodeEngineRange, supportsNode } from './runtime-support.js';

if (!supportsNode(process.version)) {
  console.error(`fauxnix: Node.js ${nodeEngineRange} is required; found ${process.version}`);
  process.exitCode = 1;
} else {
  await import('./cli.js').then(({ runCli }) => runCli(process.argv.slice(2))).catch((e) => {
    console.error(e instanceof Error ? e.message : String(e));
    process.exitCode = 1;
  });
}

Supports-node logic from `src/runtime-support.ts:14-28`:

const minimum = /^>=(\d+)\.(\d+)\.(\d+)$/.exec(nodeEngineRange);
if (!minimum) throw new Error('fauxnix: unsupported package.json Node engine range');
const required = minimum.slice(1).map(Number);

export function supportsNode(version: string): boolean {
  const match = /^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:\+[\w.-]+)?$/.exec(version);
  if (!match) return false;
  const actual = match.slice(1, 4).map(Number);
  if (!actual.every(Number.isSafeInteger)) return false;
  for (let i = 0; i < 3; i++) {
    if (actual[i] !== required[i]) return actual[i] > required[i];
  }
  return true;
}

Common Errors

Error Message Cause Solution
`fauxnix: Node.js >=22.20.0 is required; found v20.x.x` Node.js version below the floor Upgrade to Node.js 22.20.0+ via nvm or official installer
`fauxnix: unsupported package.json Node engine range` `engines.node` not in `>=X.Y.Z` format Ensure `package.json` has a valid `>=` engine range
`fauxnix: cannot locate the built fauxnix entry at ...` `dist/index.js` missing Run `npm run build` or reinstall fauxnix-cli

Compatibility Notes

  • Windows: Full support — PowerShell 5.1 execution backend available.
  • Linux/macOS: Translate-only and CI build work; runtime execution requires a Windows host with PowerShell.
  • SEA Launcher: The facade bash.exe bundle injects the engine range as `__FAUXNIX_ENGINES_NODE__` (no `package.json` beside the executable); falls back to reading `package.json` in dev mode.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment