出现问题:
func.ps1 cannot be loaded. The file C:\Program Files\nodejs\func.ps1 is not
digitally signed. You cannot run this script on the current system.
PowerShell's default settings help prevent malicious scripts from being run. By default you should / can run scripts on the VSCode integrated terminal.
To change PowerShell security settings open PowerShell with admin privileges and run the command:
Get-ExecutionPolicy -List
You should get a response like this:
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser RemoteSigned
LocalMachine AllSigned
The CurrentUser is probably Undefined as well since you can't run scripts on your VSCode terminal.
To change that, run this command:
解决方案:
目的是更改权限