Categories
TypeScript Answers

How to fix Can’t find TypeScript compiler: Command “tsc” is not valid with TypeScript?

Spread the love

Sometimes, we want to fix Can’t find TypeScript compiler: Command "tsc" is not valid with TypeScript.

In this article, we’ll look at how to fix Can’t find TypeScript compiler: Command "tsc" is not valid with TypeScript.

How to fix Can’t find TypeScript compiler: Command "tsc" is not valid with TypeScript?

To fix Can’t find TypeScript compiler: Command "tsc" is not valid with TypeScript, we install the typescript package.

To install it, we run

npm install -g typescript

to install the package globally.

Then we can run tsc anywhere.

Conclusion

To fix Can’t find TypeScript compiler: Command "tsc" is not valid with TypeScript, we install the typescript package.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *