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.