0

I got this error when I tried to start live-server in VS Code terminal:

.../live-sercer.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.

Here is the solution I've found:

  1. Started Windows PowerShell as an admin
  2. Typed: Set-ExecutionPolicy RemoteSigned
  3. It gave me a warning: Execution Policy Change - The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks
  4. I had to confirm with Yes

Live-server is working now!

But :) Because of the warning: Can someone confirm that this is safe? Is this a secure solution?

mika2019
  • 404
  • 4
  • 16
  • There is a good answere to your concernt here: https://stackoverflow.com/questions/58878330/how-to-balance-security-powershell-execution-policy-changes-concerns-around-in – Sergio Prats Sep 29 '22 at 09:39

0 Answers0