How to fix the pm2 Powershell issue in Windows?
Sometimes when you tried to run the pm2 command and facing the policy issue related to Windows Powershell. And that is because of your Powershell policy might be Restricted or AllSigned in the current stage.
Then to fix the issue, you need to change the policy to RemoteSigned or Unrestricted using the following instructions.
- Open your Windows Powershell with Administrator mode.
- Execute this command to change the policy.
That’s it. I hope this will help. 🙂
Source : https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-powershell-1.0/ee176961(v=technet.10)?redirectedfrom=MSDN