DEV Community

Cover image for This is not the tsc command you are looking for
Vinayak
Vinayak

Posted on • Originally published at hashnode.com

This is not the tsc command you are looking for

So, from what I have experienced, this problem occurs when you install typescript like this

npm install -g tsc             #don't do this
Enter fullscreen mode Exit fullscreen mode

To solve this error, try to run this command in the terminal:

npm uninstall -g typescript
npm uninstall - g tsc
npm install -g typscript 
npm install -D typescript
Enter fullscreen mode Exit fullscreen mode

I hope it helped :)

Top comments (0)