npm install -g typescript
tsc --version
Go to the root directory of your project, and run the following command ./node_modules/typescript/bin/tsc -v