🌐
npm
npmjs.com › package › tsc
tsc - npm
January 15, 2022 - A deprecated release of the TypeScript compiler. Latest version: 2.0.4, last published: 4 years ago. Start using tsc in your project by running `npm i tsc`. There are 774 other projects in the npm registry using tsc.
      » npm install tsc
    
Published   Jan 15, 2022
Version   2.0.4
🌐
npm
npmjs.com › package › typescript
typescript - npm
September 30, 2025 - TypeScript is a language for application scale JavaScript development. Latest version: 5.9.3, last published: 2 months ago. Start using typescript in your project by running `npm i typescript`. There are 61817 other projects in the npm registry ...
      » npm install typescript
    
Published   Sep 30, 2025
Version   5.9.3
Author   Microsoft Corp.
Discussions

Do you use tsc in a production environment? Seems like everyone uses a third-party transpiler.
I usually have a tsc —noEmit in precommit/build steps for type checking, but transpilation is handled by other tools. More on reddit.com
🌐 r/typescript
20
14
May 10, 2024
How to run tsc during npx
I figured out the answer, it looks like npx will run install command before running the script, so I can just add tsc to the preinstall script: "scripts": { "start": "node bin/tutorial.js", "build": "tsc", "prestart": "npm run build", "preinstall": "npm run build" } More on reddit.com
🌐 r/typescript
4
3
January 26, 2024
npm - 'tsc command not found' in compiling typescript - Stack Overflow
I want to install typescript, so I used the following command: npm install -g typescript and test tsc --version, but it just show 'tsc command not found'. I have tried many ways as suggested in More on stackoverflow.com
🌐 stackoverflow.com
ts-node - how do I know what version of tsc it is actually using?

Is ts-node installed globally along with an older version of Typescript?

More on reddit.com
🌐 r/node
12
1
April 12, 2019
🌐
daily.dev
daily.dev › home › blog › get into tech › npm tsc essentials for developers
NPM TSC Essentials for Developers
February 4, 2025 - Set up your project, configure tsconfig.json, use the TypeScript compiler, and follow best practices for efficient development. If you're diving into the world of TypeScript, understanding how to use npm (Node Package Manager) and tsc (TypeScript ...
🌐
Better Stack
betterstack.com › community › guides › scaling-nodejs › cli-tsc-compiler
Using the TypeScript Compiler (tsc): A Complete Guide | Better Stack Community
1 day ago - Learning tsc gives you a solid foundation that applies regardless of which build tools you eventually use in production projects. The TypeScript compiler comes as an npm package that you install as a development dependency in your project.
🌐
npm
npmjs.com › ts-node
ts-node
# Locally in your project. npm install -D typescript npm install -D ts-node # Or globally with TypeScript. npm install -g typescript npm install -g ts-node # Depending on configuration, you may also need these npm install -D tslib @types/node · Tip: Installing modules locally allows you to control and share the versions through package.json. ts-node will always resolve the compiler from cwd before checking relative to its own installation. # Execute a script as `node` + `tsc`. ts-node script.ts # Starts a TypeScript REPL.
      » npm install ts-node
    
Published   Dec 08, 2023
Version   10.9.2
Author   Blake Embrey
🌐
Graphite
graphite.com › guides › npm-typescript
Using npm with TypeScript
This allows you to compile TypeScript files into JavaScript. ... This command installs TypeScript globally on your machine, allowing you to access the TypeScript compiler (tsc) from anywhere ...
🌐
AWS
docs.aws.amazon.com › amazon linux › user guide › getting started with programming runtimes on al2023 › typescript in al2023
TypeScript in AL2023 - Amazon Linux 2023
October 15, 2025 - . The expected way to get tsc (the TS compiler) for the Node.js runtime environment is to install the typescript node module. This can be done using one of the package managers, typically npm. There are two ways to install the TS compiler using npm: globally and in a project.
Find elsewhere
🌐
Visual Studio Code
code.visualstudio.com › docs › typescript › typescript-compiling
Compiling TypeScript
November 3, 2021 - Visual Studio Code includes TypeScript ... globally or in your workspace to transpile TypeScript source code to JavaScript (tsc HelloWorld.ts). The easiest way to install TypeScript is through npm, the Node.js Package Manager....
🌐
React
react.dev › learn › typescript
Using TypeScript – React
Is this page useful · TypeScript is a popular way to add type definitions to JavaScript codebases. Out of the box, TypeScript supports JSX and you can get full React Web support by adding @types/react and @types/react-dom to your project
🌐
npm
npmjs.com › package › vue-tsc
vue-tsc - npm
3 weeks ago - Latest version: 3.1.8, last published: a day ago. Start using vue-tsc in your project by running `npm i vue-tsc`. There are 305 other projects in the npm registry using vue-tsc.
      » npm install vue-tsc
    
Published   Dec 09, 2025
Version   3.1.8
🌐
Reddit
reddit.com › r/typescript › do you use tsc in a production environment? seems like everyone uses a third-party transpiler.
r/typescript on Reddit: Do you use tsc in a production environment? Seems like everyone uses a third-party transpiler.
May 10, 2024 -

I'm wondering what the use-cases are for tsc as a transpiler, since it seems like almost everyone uses a third-party one. I'd prefer to use tsc instead of relying on an additional dependency, but find it too restrictive. This has me wondering: who does use it?

To be clear: I understand the use-case for tsc as a type-checker, just not as a transpiler.

Edit: I should have specified: this question is about transpiling with tsc for front-end code, not back-end code.

🌐
npm
npmjs.com › search
tsc - npm search
An esbuild plugin which uses tsc to compile typescript files.
🌐
Reddit
reddit.com › r/typescript › how to run tsc during npx
r/typescript on Reddit: How to run tsc during npx
January 26, 2024 -

I'm learning typescript and I'm trying to create a script that will execute js files created by tsc. This is my package.json:

{
  "bin": "bin/tutorial.js",
  "scripts": {
    "start": "node bin/tutorial.js",
    "prestart": "npm run build",
    "build": "tsc"
  }

bin/tutorial.js is just a custom js file that I wrote that will execute the compiled js files in lib (tsconfig has outDir set to lib):

#!/usr/bin/env node
require('../lib/tutorial');

I am able to run the script using npm start, since it will build beforehand. However if I clean the lib directory and do 'npx .' then the tsc build will never happen. This means that the lib directory will be empty and my bin/tutorial.js file won't be able to import the compiled js.

How do I ensure that my scripts executed with npx can run the build step beforehand?

🌐
TypeScript
typescriptlang.org › download
TypeScript: How to set up TypeScript
You can use npm to install TypeScript globally, this means that you can use the tsc command anywhere in your terminal.
🌐
Learn TypeScript
learntypescript.dev › 11 › l1-installing-running-compiler
Installing and running the compiler | Learn TypeScript
This command first downloads and installs the typescript npm package. tsc is the executable name of the TypeScript compiler.
🌐
GeeksforGeeks
geeksforgeeks.org › node.js › npm-typescript
NPM Typescript - GeeksforGeeks
July 23, 2025 - To compile and run these TypeScript files, use the TypeScript compiler (tsc). ... Using npm and TypeScript together enhances the development workflow by providing robust package management and strong typing features.
🌐
JSDev
jsdev.space › howto › tsc-not-found
How to Fix the tsc Command Not Found Error
The message “tsc: command not found” appears when the TypeScript compiler is not available in your system’s executable path. This usually happens because TypeScript is not installed globally, because the PATH environment variable does not include the directory where global npm binaries are stored, or because TypeScript is installed only inside a specific project rather than system‑wide.