How to install older version of Typescript?

108,657

Solution 1

For installing typescript 1.7.5, use

npm install [email protected]

Solution 2

to install globally npm install -g [email protected]

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 [email protected]

and then check your package.json file

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

Solution 3

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 [email protected]

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

Share:
108,657
AlvinfromDiaspar
Author by

AlvinfromDiaspar

iOS developer as a hobbyist and a self-proclaimed professional.

Updated on July 08, 2022

Comments

  • AlvinfromDiaspar
    AlvinfromDiaspar almost 2 years

    I recently installed Typescript 1.8 and found too many breaking issues. So for the time being I would like to install 1.7. Where can I get a link to down this?