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.
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.
So, to install typeScript we have the below a command
npm install -g typescript
Check project level of typeScript version
To check the project level of the typeScript version, go to your project and check the
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.
I hope it helps you, All the best 👍.