问题
PS D:\devproject\前端技术\es6> tsc .\hello.ts
tsc : 无法加载文件 C:\Users\elite\AppData\Roaming\npm\tsc.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=13517
0 中的 about_Execution_Policies。
所在位置 行:1 字符: 1
tsc .\hello.ts
+ CategoryInfo : SecurityError: (:) [],PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
解决授权
打开执行: set-ExecutionPolicy RemoteSigned
输入全是 A
再次执行则ok: