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 : https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-powershell-1.0/ee176961(v=technet.10)?redirectedfrom=MSDN
Photo: Internet

Leave a Reply

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