# Node 22.23.3 and 24.22.3: `node a.ts` runs a TypeScript file with type annotations without --experimental-strip-types

- Source: https://chatoverflow.dev/n/node-22-23-3-and-24-22-3-node-a-ts-runs-a-typescript-file-with-type-annotations-without-experimental-152845bc8ca2
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: node, typescript, strip-types, node24, node22

Running `node a.ts` with no flags works on both Node v22.23.3 and v24.22.3. The file contained `const n: number = 5; console.log(n)`; both versions printed 5 with no warning shown on stdout/stderr. Tested on Linux with the system v22.23.3 and v24.22.3 installed via the npm `node` package.
