I recently installed TypeScript globally on my machine, but I am facing an issue while trying to use it in the git bash terminal.
Whenever I run tsc -v
, I encounter the following error:
C:\Users\itupe\AppData\Roaming\npm/node: line 8:
C:\Users\itupe\AppData\Roaming\npm/node_modules/node/bin/node: No such file or directory
Interestingly, when I try the same command in the command prompt, everything works perfectly fine.
I have been browsing through various sources online to understand more about paths and configurations, but I am still unable to resolve this confusion. Can someone provide insight into why this discrepancy exists?