How to install older version of Typescript?
For installing typescript 1.7.5, use
npm install [email protected]
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.
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.