I want to install typescript, so I used the following command:
npm install -g typescript
and test tsc --version, but it just
tsc --version
Check your npm version
npm
If it's not properly installed, then install it first
run this command npm install typescript -g
npm install typescript -g
now tsc .ts
tsc .ts
It'll create a corresponding .js file. eg .js
.js
now try node .js
node .js