美文网首页
vscode terminal 无法运行

vscode terminal 无法运行

作者: BUTIMHERE | 来源:发表于2022-02-18 11:32 被阅读0次

新换电脑使用vscode 中的terminal时,报如下错误:
系统上禁止运行脚本


image.png

【解决】
1, 管理员运行cmd
2, 运行:Get-ExecutionPolicy -List 查看权限 发现一个权限也没有



3,运行命令:set-ExecutionPolicy RemoteSigned
image.png

LocalMachine有权限之后 vscode下的终端就可用了

参考:https://blog.csdn.net/weixin_41362657/article/details/110649744

相关文章

网友评论

      本文标题:vscode terminal 无法运行

      本文链接:https://www.haomeiwen.com/subject/ditylrtx.html