'how can I solve run problem on type script file?

I want to use typescript on my project, I have successfully installed Machine Environment by using "npm i -g typescript" command, then I want run the .ts file by using "tsc file.ts" but I have get this problem...



Solution 1:[1]

You can try this.

Step - 1 Open your terminal in Run As Administrator

Step - 2 Run the following command

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Khushbu Choksi