新安装的vscode,在执行命令行时,发生如下错误:
无法加载文件,...因为在此系统上禁止运行脚本
出现这种问题是由于脚本的执行策略没有正确配置
get-ExecutionPolicy
set-ExecutionPolicy RemoteSigned
微软官方文档:
https://docs.microsoft.com/zh-cn/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.1&viewFallbackFrom=powershell-6
本文来自博客园,作者:Bin_x,转载请注明原文链接:https://www.cnblogs.com/Bin-x/p/15433556.html