Ive tried to install TS globally on my mac with the command npm install typescript -g also tried this with the "sudo" before, its looks like it working but then when i trying to look up my tsc version in the terminal, I get this error zsh: command not found: tsc.
Asked
Active
Viewed 610 times
1 Answers
0
On mac, instead of NPM, install typescript with:
brew install typescript
(Also if you want to make the npm i -g typescript
work, try this to add the globally installed packages to the PATH)
Also make sure to install the proper ts extensions for your IDE.

yaya
- 7,675
- 1
- 39
- 38
-
Thank you it works, but i have another problem, when Im working on my angular project i don't get error in the html file before Im saving the file, however i do get errors in the TS files – Dror Handler May 29 '22 at 10:19
-
1Update, the issue was that I didn't enable the Angular Language Services extension. Thanks for your help, much appreciated! – Dror Handler May 29 '22 at 10:53
-
@DrorHandler Hey. Sorry for late reply, i just saw your prev comment. Glad it's fixed. Happy codding <3 – yaya May 29 '22 at 10:55