运行tsc **.ts后提示“无法加载文件xxxxxxxxx, 因为在此系统上禁止运行脚本。”[已解决] 问题

105 阅读1分钟

问题

image.png

解决方案

管理员身份运行windows powershell 输入set-ExecutionPolicy RemoteSigned选择 A 或者 Y,回车。

image.png

已解决