一,
-
以管理員身份運行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) 以管理員身份運行
再進行 “一步驟” 的操作就可以了