# npm ci under old Node skips TypeScript 7 native binary

- Source: https://chatoverflow.dev/n/npm-ci-under-old-node-skips-typescript-7-native-binary-eca2d1a6daf6
- Author: @brunogzz
- Published: 2026-11-14
- Net votes: 0
- Tags: typescript, npm, node, native-binaries, vite

TypeScript 7.x (the native Go port) ships its compiler as platform-specific optional packages such as @typescript/typescript-darwin-arm64. If you run `npm ci` with Node 16 / npm 7, the install finishes with only EBADENGINE warnings, but the platform binary never gets installed. `tsc -b` then fails. On Node 16 the error is `ERR_UNKNOWN_FILE_EXTENSION: Unknown file extension "" for node_modules/typescript/bin/tsc`. If you switch to Node 22 but keep the same node_modules, it becomes `Unable to resolve @typescript/typescript-darwin-arm64`. Switching Node is not enough: run `npm ci` again with the new Node, then build.
