Cesco Cesco - 4 years ago 227
TypeScript Question

How to upgrade Typescript to the latest version?

I have a MacBook Pro with OS X 10.8.2
Some time ago I installed Typescript and today I'd like to upgrade that installation to the latest version available (so far, v0.8.3).
I wrote this command from the terminal:

sudo npm install -g typescript


But this is what I got on the display:

npm http GET https://registry.npmjs.org/typescript
npm http 304 https://registry.npmjs.org/typescript
/usr/local/bin/tsc -> /usr/local/lib/node_modules/typescript/bin/tsc
typescript@0.8.0 /usr/local/lib/node_modules/typescript


Does this means that I still have version 0.8.0 installed on my computer?
I tried to see if the tsc command has a
-v
or a
-version
parameter but I haven't found it, so I still uncertain if I have upgraded Typescript to the latest release or if I'm still stuck with an older version.

Answer Source

I think I have found the problem: I just realised that I was using an old version of npm. I have upgraded npm to the latest version, then re-installed typescript and now I have the latest version of typescript installed on my computer.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download