0

I cannot run the tsc -v command in VS Code, but i can run it on my Terminal. On the Terminal i got the current version of TypeScript, but in VS Code i got command not found: tsc.

I successfully installed TypeScript with npm install -g typescript . After that I included the directory to my PATH environment variable with this commannd: export PATH="$PATH:/path/to/my_directory/" . When I test it to my terminal with: tsc -v it works. But when I try it in VS Code then i got the error: command not found: tsc .

I tried to uninstalled it and reinstall it but got the same error. Any suggestions? I'm using macOS. Thank you for your help.

Bil Roum
  • 1
  • 1
  • "_After that I included the directory to my PATH environment variable with this commannd: export PATH="$PATH:/path/to/my_directory/"_" Did you actually put that command in a file that gets sourced for all processes? https://stackoverflow.com/q/7703041/11107541 – starball Mar 10 '23 at 01:21

0 Answers0