Premise: node and typescript are installed
Error: execute TSC xxx.ts in vscode, an error will be reported.
Solution: the execution mechanism of vscode is limited. Just change the execution mechanism
Exit vscode and run as administrator.
step 1:
execute get-ExecutionPolicy and return Restricted, which means it is restricted.
step 2:
execute set-ExecutionPolicy RemoteSigned
step 3:
execute get-ExecutionPolicy and return RemoteSigned
Perform the above steps and execute TSC xxx.ts again is OK
Read More:
- VSCode Terminal Execute tsc Commands Error [Solved]
- How to Solve Vscode terminal error (ts -v)
- VScode integrate terminal input node error [How to Solve]
- Vscode configures eslint to solve terminal syntax error
- [Solved] Vscode1.71.0 terminal error: `sed: illegal option — r`
- [Solved] VScode Error: PS D:\vscode> cd “d:\vscode\“ ; if ($?) { g++ tempCodeRunnerFile.cpp -o tempCodeRunn
- [Solved] VScode powershell Run ts-node Error: Unable to load file xxxx…
- [Solved] Vscode error: Unable to resolve resource walkThrough://vscode_getting_started_page
- [Solved] VScode Error: build constraints exclude all Go files in syscall\js
- C++ Primer Program in VsCode error: no match for call to ‘(std::__cxx11::string…)
- [Solved] Vscode Error: “export ‘default‘ (imported as ‘VueRouter‘) was not found in ‘vue-router‘
- [Solved] Vscode Katex Error: ParseError: KaTeX Parse Error: Can‘t Use Function ‘$‘ In Math Mode At Position …
- Vscode uses /deep/ Syntax error [How to Solve]
- [Solved] Vscode debug error launch: Program “path” does not exist
- [Solved] Vscode connect virtual machine error: can’t be established
- vscode git error: would clobber existing tag [How to Solve]
- VScode jsconfig.json files First Line error for no reasons
- How to Solve webpack -v View Error in vsode
- [Solved] VScode Error: find_package(catkin) failed
- Vscode pylint reported an error of “no member”, but it is running normally