How to install older version of Typescript? How to install older version of Typescript? typescript typescript

How to install older version of Typescript?


For installing typescript 1.7.5, use

npm install typescript@1.7.5


to install globally npm install -g typescript@1.7.5

to check open cmd and run tsc -v

to install it for the specific project you are working on change to the directory of your project

npm install typescript@1.7.5

and then check your package.json file

If you are using visual studio 2017, it may be using visual studio's version of typescript.


If you have a higher version of typescript and you want to install an Older version, you should Uninstall the current version by this command:

npm uninstall typescript

And then you can install the specific version you want like this for version(3.9.7):

npm install typescript@3.9.7

for Globally Install or Uninstall you can add -g to both of the above commands.