一,
-
以管理员身份运行vscode;
-
执行: get-ExecutionPolicy,显示 Restricted,表示状态是禁止的;
-
执行: set-ExecutionPolicy RemoteSigned;
-
这时再执行 get-ExecutionPolicy,就显示 RemoteSigned;
- 这样就可以解决了。
- (注意!一步步来,谢谢!)
1(怎么以管理员身份运行vscode???)
win10中,点击菜单,搜索 Window Powershell 右键 “以管理员身份运行”
没有搜索框的情况下(1)打开菜单,点击字母
(2)点击W搜索“Window Powershell ”
(3)找到 Window Powershell 下的 Window Powershell lSE(xxx) 以管理员身份运行
再进行 “一步骤” 的操作就可以了