webpack : 无法加载文件 C:\Users\SoftMoney\AppData\Roaming\npm\webpack.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。
![](https://img.laitimes.com/img/_0nNw4CM6IyYiwiM6ICdiwiIn5GcuczN5IjM0IjMzIDOwkTMwIzLc52YucWbp5GZzNmLn9Gbi1yZtl2Lc9CX6MHc0RHaiojIsJye.png)
设置PowerShell执行策略:
Set-ExecutionPolicy Unrestricted
如果报错
输入Set-ExecutionPolicy -Scope CurrentUser
出现ExecutionPolicy:后输入Unrestricted