I've installed typescript 2.4.1 on my system globally (tsc -v gives me version 2.4.1). I want to uninstall it as I want to go to version 2.3.4 for some of my e2e tests to work. But right now I'm unable to uninstall it. I tried to uninstall through npm
npm uninstall -g tsc
but after running the command when I run
tsc -v
it again shows me
version 2.4.1.
I've search this problem and found some solutions
uninstalling typescript without node and npm installing old versions of (typescript compiler) package but I've tried all i.e. try to find if in installed programs but could not find it. Then going into
C:\Program Files (x86)\Microsoft SDKs\TypeScript
to delete the folder manually but there was version 2.3, not 2.4.1 which its showing in command prompt.
Any help how can I get rid of typescript 2.4.1. ?
Please type:
npm uninstall -g typescript
instead of
npm uninstall -g tsc
That should solve your problem! :)