Note: this article is published on 10/05/2024.
This series of articles will discuss a specific feature for PowerShell programming. Actually, these two articles are talking to a same issue.
- PowerShell - Script Is Not Digitally Signed Or Running Not Enabled
- TypeScript command 'tsc' not running in Terminal and PowerShell --- this article
A: Introduction
This article will discuss,
- A: Introduction
- B: What --- What is the Issue
- C: Why --- What is the Reason
- D: How to Fix:
B: What the issue is
When we run a typescript version checking command,
tsc -v
We may get error in either PowerShell prompt or Visual Studio or VS Code terminal, such as

However, if we run this same command from a command line prompt, such as Windows Colose, we can get the result:

We can see something like this

TypeScript Not Running in terminal - Code with Mosh Forum
C: Why --- What is the Reason
There are some articles to discuss this issue, but most of them went to a wrong answer, such as
Actually, it is not true. From the PowerShell window, we can see:







Join the conversation! Your thoughts help the community grow.