A
A
Alex2016-09-14 11:58:14
ubuntu
Alex, 2016-09-14 11:58:14

How to properly install\remove TSC in Ubuntu?

Once using npm installed the TypeScript 1.8 compiler. After some time using npm updated it to version 2.0.2. And now I have, for some reason, two versions installed:

/usr/lib/node_modules/typescript/bin/tsc -v
Version 2.0.2

/usr/local/lib/node_modules/typescript/bin/tsc -v
Version 1.8.10

So how to be? Why did it happen? And how to bring different compilers to a single state?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2016-09-14
@nazarpc

The first one is installed through the package manager. You can delete it like this sudo apt-get purge node-typescript:
The second one was installed via NPM. You can delete it like this sudo npm uninstall -g typescript:
Which one you need - leave that one, delete the second one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question