Reputation: 164
today I wanted to install a newer version of Typescript since the one installed on this machine is 1.0.3.0 (issuing the command tsc --v)
When I type in npm install -g typescript@latest
I get this output:
%APPDATA%\npm\tsc -> %APPDATA%\npm\node_modules\typescript\bin\tsc
%APPDATA%\npm\tsserver -> %APPDATA%\npm\node_modules\typescript\bin\tsserver
%APPDATA%\npm
`-- [email protected]
(I replaced my full path to \Appdata\Roaming directory with %APPDATA% for the sake of readibility).
This leads me to think that I already have [email protected] which appears to be the latest, but if I type in tsc --v again, I still see 1.0.3.0
How do I "force" the ugprade of TSC?
Thanks
Upvotes: 3
Views: 1911
Reputation: 164
Thanks to Sebastian Sebald, I found a solution:
The output of where tsc
was this:
C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\tsc.exe
C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\tsc.js
%APPDATA%\npm\tsc
%APPDATA%\npm\tsc.cmd
This lead to npm
telling me that it had already installed [email protected]
, but when I typed tsc
I actually was using C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\tsc.exe
.
I removed C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0
from my PATH
variable et voilat!
Thanks everybody.
Upvotes: 4