Why tsc path is not detected(Windows) ? 'tsc' is not recognized as an internal or external command

Viewed 56

When I run(from Gitbash)

npm run compile

I got

'tsc' is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE

I checked

$ npm config get prefix
C:\Users\romanrublev\AppData\Roaming\npm

I installed tsc(npm i-g tsc). In the above directory I have enter image description here

I checked env variables on my Windows

enter image description here

Install again

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
+ typescript@4.4.4

Why tsc path is not detected? Maybe multiple npms(global,.npmrc)?

0 Answers
Related