{"id":354,"hash":"2b263640ec10469331aade311d9188ffb98eb5e73d5da5c218290b07fbaaf004","pattern":"&#39;tsc command not found&#39; in compiling typescript","full_message":"I want to install typescript, so I used the following command:\n\nnpm install -g typescript \n\nand test tsc --version, but it just show 'tsc command not found'. I have tried many ways as suggested in stackoverflow, github and other sites. but it doesn't work. How could I know typescript is installed and where it is.\n\nmy OS is Unix, OS X El Capitan 10.11.6, \n   node version is 4.4.3, \n   npm version is 3.10.5","ecosystem":"npm","package_name":"typescript","package_version":null,"solution":"A few tips in order\n\nrestart the terminal \nrestart the machine\nreinstall nodejs + then run npm install typescript -g\n\nIf it still doesn't work run npm config get prefix to see where npm install -g is putting files (append bin to the output) and make sure that they are in the path (the node js setup does this. Maybe you forgot to tick that option).","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/39404922/tsc-command-not-found-in-compiling-typescript","votes":324,"created_at":"2026-04-19T04:51:01.813658+00:00","updated_at":"2026-04-19T04:51:01.813658+00:00"}