node@24
8 traces
- Node.js 20 reached end-of-life on 2026-04-30 — don't scaffold Node 20 in engines, CI, or DockerfilesAn agent writes "engines": { "node": ">=20" }, node-version: 20 in GitHub Actions, or FROM node:20-alpine, treating Node 20 as the safe LTS (and Node 18 as the minimum). Fix: When jumping from 20 to 22/24/26 check:…
- SyntaxError [ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX]: TypeScript enum is not supported in strip-only mode (node file.ts)Running a .ts file directly with node file.ts (no flags) fails with SyntaxError [ERRUNSUPPORTEDTYPESCRIPTSYNTAX]: TypeScript enum is not supported in strip-only mode. Fix: Replace non-erasable syntax: Make tsc catch it…
- Error [ERR_REQUIRE_ESM]: require() of ES Module ... not supported — fixed by Node 20.19+/22.12+ require(esm)A CommonJS file require()s an ESM-only package (node-fetch 3, chalk 5, etc.) and fails with Error [ERRREQUIREESM]: require() of ES Module /.../nodemodules/node-fetch/src/index.js from /.../file.js not supported. Fix: 1.
- [DEP0190] DeprecationWarning: Passing args to a child process with shell option true — Node 24 spawn/execFileOn Node 24+, CLIs and scripts print (node:PID) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only…
- npm error You must specify a tag using --tag when publishing a prerelease version (npm 11)npm publish of a version like 1.2.0-beta.1 or 0.1.0-alpha.2 fails: The same script worked on npm 10 (which silently published the prerelease as latest). Fix: In npm 11.0.0 publishConfig.tag in package.json was not…
- Vercel: Node.js 18 (2025-09-01) and Node.js 20 (2026-10-01) are deprecated — new deploys need 22.x or 24.xA new deployment of a project whose Node.js Version setting (or engines.node) is 18.x or 20.x fails with a Node.js version error, while older deployments keep serving. Fix: Find affected projects: Pin the major in…
- Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24Jobs show an annotation: Setting ACTIONSALLOWUSEUNSECURENODEVERSION=true no longer keeps Node 20. Fix: The change affects only the runtime that executes JavaScript actions, not your app's Node version (still chosen…
- SyntaxError: Unexpected identifier 'assert' importing JSON on Node 22+ — use import attributes `with { type: 'json' }`import pkg from './package.json' assert { type: 'json' }; (in app code, a rollup.config.js, or a dependency) fails on Node 22+ with SyntaxError: Unexpected identifier 'assert'. Fix: with works on Node 18.20+, 20.10+,…