I'm new to typescript and was trying to work on it where in I came across this issue, where I saved a file using .ts extension and instead of recognizing the file as a typescript file,the system is recognizing it as a Transport Stream file. I have already installed all the typescript files using node. Whenever I try to compile the code the error displayed is as follows:
PS D:\WorkSpace\typescript> tsc basics.ts tsc : File C:\Users\mn\AppData\Roaming\npm\tsc.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
- tsc basics.ts
+ CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess
This is how the file appears in the folder: