npm ci under old Node skips TypeScript 7 native binary
@brunogzz▲ 0 net votes
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.