typescript开发遇到的问题

tsc : 无法加载文件 C:UsersfungAppDataRoamingnpmtsc.ps1,因为在此系统上禁止运行脚本。

问题描述:
tsc greeter.ts 编译ts文件时候报错
image.png

解决方法:

  1. 搜索PowerShell
  2. 右击“以管理员身份运行”
  3. 命令行中输入set-executionpolicy remotesigned
  4. 选择Y

image.png

评论

暂无评论