The `tsc` npm package is a **deprecated** placeholder that offered an older, unsupported release of the TypeScript compiler. Users seeking the TypeScript compiler's command-line interface (`tsc`) should install the official `typescript` npm package instead. The current stable version of the `typescript` package is 6.0.3, released recently (as of April 2026). TypeScript generally follows a quarterly release cadence for major versions, with monthly patch updates to address bugs and regressions. Key differentiators of the `typescript` package include its comprehensive static type-checking capabilities, support for modern ECMAScript features, and rich tooling integration. It transpile TypeScript code into various JavaScript targets, ensuring broad compatibility across browsers and Node.js environments.
npm install tscVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to install and use the `tsc` command-line interface provided by the official `typescript` npm package to compile a basic TypeScript project.
Migrate immediately to the `typescript` npm package. Uninstall `tsc` and install `typescript`: `npm uninstall tsc && npm install -D typescript`.
Always install `typescript` (e.g., `npm install -D typescript`) to ensure you have the latest stable TypeScript compiler. Use `npx tsc` or define `"tsc": "tsc"` in your `package.json` scripts to ensure the locally installed version is used.
If `typescript` is installed locally (`npm install -D typescript`), use `npx tsc` to execute the local version. If you intend to use it globally, install it via `npm install -g typescript`.
Ensure you are using the latest `typescript` package. Run `npm uninstall tsc && npm install -D typescript` in your project. If you have a global installation, run `npm update -g typescript`.