6

解决"因为在此系统上禁止运行脚本"报错

 3 years ago
source link: https://www.jianshu.com/p/f4854a0a900d
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

解决"因为在此系统上禁止运行脚本"报错

2020.06.02 22:04:51字数 57阅读 137

因为PowerShell执行策略导致。

  1. 以管理员身份运行vscode;
  2. 执行:get-ExecutionPolicy,显示Restricted,表示状态是禁止的;
  3. 执行:set-ExecutionPolicy RemoteSigned;
  4. 这时再执行get-ExecutionPolicy,就显示RemoteSigned;

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK