install typescript using npm
npm install -g typescript
how to check typescript version
tsc --version
npm typescript
npm install -g typescript
how to check typescript version for my react-app
Go to the root directory of your project, and run the following command
./node_modules/typescript/bin/tsc -v