初次使用报错

执行 tsc hello.ts

命令报错:因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170
中的 about_Execution_Policies。
typeScript
打开:typeScript

运行:set-ExecutionPolicy RemoteSigned

typeScript
再次执行:就好了
typeScript
环境配置: node.js v-s-code->文件->首选项->设置->搜索quote一般使用单引号 搜索Tab Size设置为2
插件安装: prettier

相关文章: