Hi Friends đź‘‹,
Welcome To Infinitbility! ❤️
Check the global level of the typeScript version
To check the current typescript version, open your terminal and run the tsc -v
command it will show the current global version of TypeScript.
![Check TypeScript Version](./images/check-typescript-version.jpg)
Getting error tsc not found
You run the above command tsc -v
but it shows the error 'tsc'
not recognized as an internal or external command, it means typeScript does not install global level on your PC.
![TypeScript Not Installed](./images/typescript-not-found.jpg)
So, to install typeScript we have the below a command
npm install -g typescript
![TypeScript Installed](./images/install-typescript.jpg)
Check project level of typeScript version
To check the project level of the typeScript version, go to your project and check the package.json
file.
If you get typescript
in your package.json
file then your project is running a mentioned version of TypeScript.
else it’s running on your global level typeScript version.
![Project level version of TypeScript](./images/project-level-typescript-version.jpg)
I hope it helps you, All the best đź‘Ť.