Please type:

npm uninstall -g typescript

instead of

npm uninstall -g tsc

That should solve your problem! :)

Answer from Sohaib Furqan on Stack Overflow
Top answer
1 of 6
20

Please type:

npm uninstall -g typescript

instead of

npm uninstall -g tsc

That should solve your problem! :)

2 of 6
8

FOR WINDOWS

You might have an old TypeScript installation on your computer because of a Microsoft SDK:

cmd>tsc --version
Version 1.0.3.0

If you check the PATH environment variable, you may find an entry like this:

C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\

In my case, the uninstallation of "TypeScript Tools for Microsoft Visual Studio 2015" did not remove tsc.exe etc. from this path, probably because it was installed as part of the Windows 10 SDK or something else.

You can remove the entry from the PATH environment variable or at least move it below the entry for Node.js (probably C:\Program Files\nodejs) or nvm (like C:\Users\<username>\AppData\Roaming\nvm) in case you use Node Version Manager. This will prevent that calls to tsc run the ancient TypeScript compiler:

cmd>tsc --version
Version 3.1.3

Don't forget to restart your command line after changes to environment variables for them to take effect!

If you are unsure what binary the tsc command will actually run then use the where command to find out:

cmd>where tsc
C:\Program Files\nodejs\tsc
C:\Program Files\nodejs\tsc.cmd
C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\tsc.exe
C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\tsc.js

The priority is top to bottom. The first entry in my case is a (Linux) shell script and usually not executable on Windows. The second entry is a Windows Batch script and this is the one that will be executed. It basically invokes Node.js (simplified):

node.exe node_modules\typescript\bin\tsc

OR

You can now uninstall "TypeScript Tools for Microsoft Visual Studio 2015" from the Control Panel in Programs and Features. It was automatically installed with Visual Studio 2015 in my case.


FOR Ubuntu Linux

Uninstall node-typescript To uninstall only node-typescript from Ubuntu 16.04 (Xenial Xerus) run in terminal:

sudo apt-get remove node-typescript

Uninstall node-typescript and dependent packages To uninstall the node-typescript package and any other dependent packages that are no longer needed by Ubuntu Xenial.

sudo apt-get remove --auto-remove node-typescript

Expunge node-typescript If you also want to clear the node-typescript settings and / or data from Ubuntu Xenial then use this command:

sudo apt-get purge node-typescript

To clear the node-typescript settings and / or data files and their Ubuntu Xenial dependent packages, run:

sudo apt-get purge --auto-remove node-typescript

More information about apt-get remove

Advanced Package Tool, or APT, is a free software user interface that works with core libraries to handle the installation and removal of software on Debian, Ubuntu and other Linux distributions. APT simplifies the process of managing software on Unix-like computer systems by automating the retrieval, configuration and installation of software packages, either from precompiled files or by compiling source code.

apt-get is the command-line tool for handling packages, and may be considered the back end user to other tools using the APT library.

apt-get remove is identical to install except that packages are removed instead of installed. Note that removing a package leaves its configuration files on the system. If a plus sign is appended to the package name (with no intervening space), the identified package will be installed instead of removed.

🌐
Hacker News
news.ycombinator.com › item
Remove TypeScript | Hacker News
September 18, 2023 - So as a fanboy, when I read things like this I try my darnedest to have empathy and try to understand it from their point of view. And I’m just really struggling to in this case · I get that it adds some complexity. But what are you actually getting without it?
🌐
Luis Llamas
luisllamas.es › inicio › cursos › curso typescript
How to install TypeScript
December 6, 2024 - We learn how to install, update, and uninstall TypeScript - TypeScript Course
🌐
GitHub
github.com › nodegui › nodegui-starter › issues › 33
How do I remove typescript? · Issue #33 · nodegui/nodegui-starter
December 15, 2019 - Is it possible to get a version of this without typescript or at least get some documentation on how to remove it? I'm not very versed in either typescript or webpack and all of my attempts to ...
Published   Jan 25, 2020
🌐
Microsoft
social.msdn.microsoft.com › Forums › en-US › b34254c3-61b8-483e-bb85-33f4c6352ee2 › cant-update-or-uninstall-typescript
Can't update or uninstall typescript? | Microsoft Learn
TypeScript is included as a first-class programming language in Microsoft Visual Studio 2013 Update 2 and later, beside C# and other Microsoft languages. An official extension allows Visual Studio 2012 to support TypeScript as well. So we could not uninstall this official extension, but we still could update it.
🌐
YouTube
youtube.com › hey delphi
NodeJS : Unable to uninstall typescript globally through npm - YouTube
NodeJS : Unable to uninstall typescript globally through npmTo Access My Live Chat Page, On Google, Search for "hows tech developer connect"Here's a secret f...
Published   May 28, 2023
Views   366
🌐
GeeksforGeeks
geeksforgeeks.org › installation guide › how-to-install-typescript
How to install TypeScript ? - GeeksforGeeks
July 23, 2025 - npm install --global [email protected] · Replace x.x with the desired version number, as shown in the image below: If you need to uninstall TypeScript, use the following command: npm uninstall --global typescript · Let's create a simple "Hello ...
🌐
GitHub
github.com › cawa-93 › vite-electron-builder › discussions › 339
Guide to disable typescript and remove dependencies · cawa-93/vite-electron-builder · Discussion #339
npm uninstall @types/electron-devtools-installer @typescript-eslint/eslint-plugin typescript vue-tsc dts-for-context-bridge
Author   cawa-93
Find elsewhere
🌐
Uninstallapp
uninstallapp.com › article › How-to-uninstall-typescript-ui.html
Completely Uninstall and Remove typescript-ui
UninstallApp.com provides step-by-step uninstall tutorials to help you completely uninstall various unwanted programs.
🌐
Reddit
reddit.com › r/typescript › how to uninstall/run this program? never used ts before!
r/typescript on Reddit: How to uninstall/run this program? Never used TS before!
May 25, 2024 -

Hi there! I wanna apologize in advance since... well, I know next to nothing about Typescript. I've heard of it and I kind of know what it does + I've installed it via npm, but that's about it. Basically, I found this package on GitHub that I want to install and run, which I've seen uses TS. I don't really know how to use any of the functions here, though, so I'll go over what I have done:

  • Installed the package to my computer

  • Installed Node.js, npm, and Typescript

  • Tried running the npm install animaljam.js command, but failed. It begins installing, but later says it can't find the file (I wonder if there's a way I should be linking it to the folder).

I'm extremely new to all this stuff, and I'm really not looking to get into JavaScript or anything, but I would at least really like to know how to run this program- or what I'm doing wrong. Thanks so much to anyone who can point me in the right direction!

🌐
YouTube
youtube.com › watch
Remove TypeScript from React Native app 0.71 | React Native full course for beginners | Mr DevGeek - YouTube
Greetings, In this tutorial you'll learn how to remove TypeScript from React Native App and I'll explain about React Native Latest update 0.71React Native Be...
Published   January 15, 2023
🌐
Developer Community
developercommunity.visualstudio.com › content › problem › 1283064 › installing-vs-1683-failed-to-uninstall-typescript.html
installing vs 16.8.3, failed to uninstall typescript sdk
Skip to main content · Microsoft · Visual Studio · Sign in · You need to enable JavaScript to run this app · Sorry this browser is no longer supported · Please use any other modern browser like 'Microsoft Edge'
🌐
Hubwiz
corpus.hubwiz.com › 2 › node.js › 22393590.html
uninstalling typescript without node
I see in node_modules, it creates a folder called typescript when I install it. When I try to uninstall, it will output unbuild typescript and some version number. So I would think that that did the trick.
🌐
Developer Community
developercommunity.visualstudio.com › content › problem › 1257502 › typescript-39-sdk-uninstalled-by-upgrading-to-vs-1.html
Typescript 3.9 SDK Uninstalled by Upgrading to VS 16.8?
Skip to main content · Microsoft · Visual Studio · Sign in · You need to enable JavaScript to run this app · Sorry this browser is no longer supported · Please use any other modern browser like 'Microsoft Edge'
🌐
Reddit
reddit.com › r/typescript › install/uninstall "@types/" packages automatically
r/typescript on Reddit: Install/uninstall "@types/" packages automatically
September 23, 2018 - C:\Users\Exac\Documents\example>npm i --save lodash npm WARN [email protected] requires a peer of ajv@^(6.0.0) but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of typescript@^(2.1.0) but none is installed.