1. Problem description
When the vscode terminal executes the TSC instruction to compile the TS document, an error is reported as follows:
2. Causes of problems
Vscode terminal cannot use command
3. Solutions
1. Right click the vscode icon and select run as administrator;
2. Run code on vscode terminal
get-ExecutionPolicy
Restricted is displayed, indicating that the terminal is prohibited from using the command;
3. Rerun the code
set-ExecutionPolicy RemoteSigned
4. Execute again at this time
get-ExecutionPolicy
If remotesigned is displayed, it means that the terminal command can be used
4. Implementation effect
Read More:
- How to Solve webpack -v View Error in vsode
- How to Solve Vscode terminal error (ts -v)
- [Solved] Vue initialization error: Cannot Loading the File…
- [Solved] cnpm: Cannot load the file C:\Users\Raytine\AppData\Roaming\npm\cnpm.ps1 because running scripts is prohibited on this system
- CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : Unau
- vscode git error: would clobber existing tag [How to Solve]
- VScode integrate terminal input node error [How to Solve]
- [Solved] VSCode Edit LaTeX Error: Recipe terminated with error.
- Gitlab Reconfigure is Stuck ruby_block[wait for redis service socket] action run
- VScode: How to Solve golong plug-in install Error
- Vs code execute command error [How to Solve]
- [Solved] Vscode connect virtual machine error: can’t be established
- How to Solve VMware Workstation Error: The VMware Authorization Service is not running.
- Vscode pylint reported an error of “no member”, but it is running normally
- Git xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcru
- [Solved] internal/modules/cjs/loader.js:892 ^Error: Cannot find module ‘C:\Users\LX\Desktop\Node_DEMO\a
- [Solved] Vscode Connect SSH Error: Error Running the contributed command ‘_workbench.downloadResource
- Turn off eslint checksum and resolve formatting conflicts
- How to Solve pod Error: “Authentication token is invalid or unverified. Either verify it with the email that…”
- kubeadm join Add a New Note Error [How to Solve]