I want to install typescript, so I used the following command:
npm install -g typescript
and test tsc --version
, but it just
Easy fix for Mac I found. Just run these commands:
sudo npm install -g concurrently
sudo npm install -g lite-server
sudo npm install -g typescript
Nothing worked except this for me.
After finding all solutions for this small issue for macOS only.
Finally, I got my TSC works on my MacBook pro.
This might be the best solution I found out.
For all macOS users, instead of installing typescript using npm, you can install typescript using homebrew.
--> brew install typescript
Please see attached screencap for reference.
Thank you.
enter image description here
The only solution that work for me was put npx tsc -v or for the compiling npx tsc salida.ts
"salida.ts" is the name of the file