# vscode 無法執行 yarn 在vscode無法執行指令,需要執行策略 1. 先以`系統管理員` 身分執行 VScode 2. 查看目前的執行策略 ```=sh $ get-ExecutionPolicy ``` 3. 配置執行策略 ```=sh $ set-ExecutionPolicy RemoteSigned ``` 或是 ```=sh $ Set-ExecutionPolicy -Scope CurrentUser // 填入 => RemoteSigned ``` 參考資料: [vscode 自带终端无法运行yarn](https://zhuanlan.zhihu.com/p/351191707) [使用群組原則管理執行原則](https://learn.microsoft.com/zh-tw/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.3) [踩坑:vscode的终端无法使用yarn](https://www.jianshu.com/p/5c2b90dba710)