Skip to content

How can I update Visual Studio's version of TypeScript? #5995

Closed
@johnfn

Description

@johnfn

I bothered @DanielRosenwasser with something similar on gitter yesterday, but I want to reduce the problem to something even easier.

I want to upgrade to the latest version of TypeScript - 1.7.3 - but I'm actually not sure how I can do that when using Visual Studio, which was installed with an older version. It seems like I must be somewhere around TypeScript 1.6, as both the exponentiation operator and this typing don't work.

What I've tried to do to upgrade my version:

It claims that TypeScript is already installed and there's nothing to do. Just for fun, I tried to remove it and reinstall it anyways. No luck.

  • npm install -g typescript

This had no effect, as far as I can tell.

  • npm install typescript

Also did nothing.

This stopped the red squiggles from appearing under my exponentiation operator and this type! Promising! However, when I try to compile, I get errors when I try to use features from 1.7 anyways. It's as if Visual Studio is using two separate compilers.

Thanks for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions