M
M
Maxim Boyko2021-05-25 22:04:08
typescript
Maxim Boyko, 2021-05-25 22:04:08

Why is the tsc command not recognized?

The name "tsc" is not recognized as the name of a cmdlet, function, script file, or executable program.
I get this error when I try to see at least the version, not to mention the compilation, installed via npm, globally.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Aetae, 2021-05-26
@Aetae

If you installed it globally via npm or yarn, then it should work right away.
In order for the installed to be pulled up, you often need to restart the terminal, perhaps this is the case.)

I
Igor Makhov, 2021-05-25
@Igorgro

npx tsc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question