Typescript is updated using the following command:
npm install typescript -g
npm list typescript -g
It's likely that you have an old version of TypeScript installed for Visual Studio, and that the Visual Studio installation is shadowing the one installed through npm. You will probably need to change your
To check, open up a Command Prompt (
CMD.exe) and type in
If the first items are not associated with Node/npm, and are instead installed in something like
C:\Program Files (x86)\Microsoft SDKs\TypeScript\..., then you'll need to configure your system environment variables.
system environment variables
Edit the system environment variables
PATHenvironment variable has the Node/npm location prioritized over the Visual Studio location.