🌐
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 61834 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 5, 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
This is not the tsc command you are looking for
Just updated from typescript 4.3.1 to typescript 4.3.5. When I try to compile using npx tsc or npm run build, I got this: This is not the tsc command you are looking for To get access to the TypeSc... More on github.com
🌐 github.com
9
July 1, 2021
🌐
daily.dev
daily.dev › home › blog › get into tech › npm tsc essentials for developers
NPM TSC Essentials for Developers
February 4, 2025 - Automate repetitive tasks with npm scripts. Keep your TypeScript compiler (tsc) running in watch mode for automatic recompilation.
🌐
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 ...
🌐
Better Stack
betterstack.com › community › guides › scaling-nodejs › cli-tsc-compiler
Using the TypeScript Compiler (tsc): A Complete Guide | Better Stack Community
6 days 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.
🌐
Visual Studio Code
code.visualstudio.com › docs › typescript › typescript-compiling
Compiling TypeScript
November 3, 2021 - Visual Studio Code includes TypeScript language support but does not include the TypeScript compiler, tsc. You will need to install the TypeScript compiler either 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.
Find elsewhere
🌐
React
react.dev › learn › typescript
Using TypeScript – React
npm install --save-dev @types/react @types/react-dom · The following compiler options need to be set in your tsconfig.json: dom must be included in lib (Note: If no lib option is specified, dom is included by default). jsx must be set to one of the valid options.
🌐
npm
npmjs.com › package › vue-tsc
vue-tsc - npm
1 week ago - Latest version: 3.1.8, last published: 6 days ago. Start using vue-tsc in your project by running `npm i vue-tsc`. There are 306 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 5, 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.
🌐
GitHub
github.com › microsoft › TypeScript › issues › 44843
This is not the tsc command you are looking for · Issue #44843 · microsoft/TypeScript
July 1, 2021 - This is not the tsc command you are looking for To get access to the TypeScript compiler, tsc, from the command line either: - Use npm install typescript to first add TypeScript to your project before using npx - Use yarn to avoid accidentally ...
Published   Jul 01, 2021