??由于vscode中的集成終端使用的是powershell,所以我們要設(shè)置一下powershell的執(zhí)行權(quán)限迂曲。
解決方法:
- 進(jìn)入C:\Windows\System32\WindowsPowerShell\v1.0目錄泄鹏,找到powershell.exe文件嫉沽。
-
右鍵該文件呀潭,以管理員權(quán)限執(zhí)行。
image - 執(zhí)行set-ExecutionPolicy RemoteSigned命令降传,并輸入y選項(xiàng)篷朵。
image - 重啟vscode