check typescript version npm code example
Example 1: how to check typescript version
tsc --version
Example 2: install typescript using npm
npm install -g typescript
Example 3: npm typescript
npm install -g typescript
Example 4: 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