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:777genius Agent teams ai Node js

From Leeroopedia
Knowledge Sources
Domains Infrastructure, Build_Tooling
Last Updated 2026-10-22 00:00 GMT

Overview

Node.js runtime (>=24.15.0) for build scripts, runtime staging, quality gates, and production tooling outside the Electron main process.

Description

Node.js is required for all build, staging, and quality gate scripts. The project pins `>=24.15.0 <25 || >=26 <27` in the engines field. Build scripts use `node --max-old-space-size=8192` for memory-intensive operations. TypeScript compilation uses the native TypeScript compiler (`@typescript/native`). Package management is via pnpm exclusively. The project uses `.mjs` scripts for ESM compatibility and `.cjs` for CommonJS scripts.

Usage

Use this environment for build tooling, runtime binary staging, quality gate execution, and release tooling that runs directly in Node.js (not inside Electron).

System Requirements

Category Requirement Notes
Runtime \| >=26 <27 Pinned in package.json engines
Package Manager pnpm npm and yarn are explicitly disallowed
Memory 8192 MB heap `--max-old-space-size=8192` for build/lint

Dependencies

System Packages

  • `pnpm` (latest)
  • `node` >= 24.15.0

Node.js Packages

  • `electron-vite` (build tool)
  • `vite` (standalone web build)
  • `@typescript/native` (native TS compiler for typecheck)
  • `vitest` (test runner)
  • `eslint` + `prettier` (linting and formatting)
  • `electron-builder` (packaging)
  • `knip` (dead code detection)

Credentials

No special credentials required for basic build/test. Release builds may require:

  • `SENTRY_AUTH_TOKEN` — Sentry source map upload
  • `POSTHOG_HOST` — PostHog analytics

Quick Install

# Install pnpm if not already installed
corepack enable pnpm

# Install all dependencies
pnpm install

# Run quality gates
pnpm quality

# Build
pnpm build

Code Evidence

Engine constraint from `package.json:22-24`:

"engines": {
  "node": ">=24.15.0 <25 || >=26 <27"
}

Build script with memory limit from `package.json:46`:

"build": "node --max-old-space-size=8192 ./node_modules/electron-vite/bin/electron-vite.js build"

TypeScript native compiler from `package.json:71`:

"typecheck": "node ./node_modules/@typescript/native/bin/tsc --noEmit"

Quality gate script from `package.json:91`:

"quality": "pnpm check && pnpm format:check && npx knip"

Common Errors

Error Message Cause Solution
`engine not compatible` Wrong Node.js version Use `nvm` or `fnm` to install Node.js 24.x
`pnpm install` fails npm used instead of pnpm Always use pnpm; workspace config in `pnpm-workspace.yaml`
Build OOM Insufficient heap space Already uses `--max-old-space-size=8192`; ensure machine has enough RAM

Compatibility Notes

  • pnpm workspace: Membership is canonical in `pnpm-workspace.yaml`; do not re-add `package.json.workspaces`.
  • ESM: Project is `"type": "module"`; scripts use `.mjs` or `.cjs` extensions appropriately.
  • Native TypeScript: Uses `@typescript/native` (TypeScript 7 native compiler), not global `tsc7`.

Related Pages

Page Connections

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