Typescript version does not update

后端 未结 2 1141
谎友^
谎友^ 2021-01-25 06:48

I am running the following command to update my TypeScript version from 1.8.5 to 2.0.7 :

npm install -g typescript

it shows as -

2条回答
  •  北恋
    北恋 (楼主)
    2021-01-25 07:17

    Down load "TypeScript_Dev12.exe" and run it.

    After successfully installing, you will find "C:\Program Files (x86)\Microsoft SDKs\TypeScript\2.0" in your system. Copy that path.

    Now go to Environment Variables->System Variables->Path, now click on edit. Remove old path of type script and add new path over there.

    Now restart your system. You will now find 2.0 as your typescript version.

提交回复
热议问题