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.

  1. Open your Windows Powershell with Administrator mode.
  2. Execute this command to change the policy.
    Set-ExecutionPolicy RemoteSigned

That’s it. I hope this will help. 🙂
Source :
Photo: Internet

Leave a Reply

Your email address will not be published. Required fields are marked *