> For the complete documentation index, see [llms.txt](https://yyaozhibo.gitbook.io/qian-duan-xue-xi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yyaozhibo.gitbook.io/qian-duan-xue-xi/codeeditor/vscode-wu-fa-zhi-hang-jiao-ben.md).

# vscode 无法执行脚本

权限受限，需要更改执行策略

## 以管理员身份运行powershell

## set-ExecutionPolicy RemoteSigned

```
PS C:\windows\system32> set-ExecutionPolicy RemoteSigned
执行策略更改
执行策略可帮助你防止执行不信任的脚本。更改执行策略可能会产生安全风险，如 https:/go.microsoft.com/fwlink/?LinkID=135170
中的 about_Execution_Policies 帮助主题所述。是否要更改执行策略?
[Y] 是(Y)  [A] 全是(A)  [N] 否(N)  [L] 全否(L)  [S] 暂停(S)  [?] 帮助 (默认值为“N”): y
```

## get-ExecutionPolicy

```
PS C:\windows\system32> get-ExecutionPolicy
RemoteSigned
PS C:\windows\system32> yarn --version
1.19.1
```
