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.