解决办法:
1. 以管理员身份运行vscode; 2. 执行:get-ExecutionPolicy,显示Restricted,表示状态是禁止的; 3. 执行:set-ExecutionPolicy RemoteSigned; (若此命令执行失败的话,则执行这条: Set-ExecutionPolicy -Scope CurrentUser,设置值RemoteSigned) 4. 这时再执行get-ExecutionPolicy,就显示RemoteSigned;
解决办法:
1. 以管理员身份运行vscode; 2. 执行:get-ExecutionPolicy,显示Restricted,表示状态是禁止的; 3. 执行:set-ExecutionPolicy RemoteSigned; (若此命令执行失败的话,则执行这条: Set-ExecutionPolicy -Scope CurrentUser,设置值RemoteSigned) 4. 这时再执行get-ExecutionPolicy,就显示RemoteSigned;