When using tsc to compile ts files in the vscode terminal during ts practice, an error is reported as follows:
Solution:
1. Open Windows PowerShell as an administrator
- Enter the command
set-ExecutionPolicy RemoteSigned
and theny
enter
- You can compile ts into a js file in the terminal tsc