Whenever I execute this command(from Gitbash)
npm run compile
The error message displayed is
'tsc' is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE
I verified by running
$ npm config get prefix
C:\Users\romanrublev\AppData\Roaming\npm
After installing tsc(npm i-g tsc). I can locate it in the specified directory https://i.sstatic.net/PdR7X.png
I even checked the environment variables on my Windows system
https://i.sstatic.net/RLBGv.png
Tried reinstalling with these commands
npm install -g typescript
C:\Users\romanrublev\AppData\Roaming\npm\tsc -> C:\Users\romanrublev\AppData\Roaming\npm\node_modules\typescript\bin\tsc
C:\Users\romanrublev\AppData\Roaming\npm\tsserver -> C:\Users\romanrublev\AppData\Roaming\npm\node_modules\typescript\bin\tsserver
+ <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8efaf7feebfdedfce7fefacebaa0ba">[email protected]</a>
Why isn't the tsc path being detected? Could there be multiple npms(global,.npmrc) causing this issue?