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:
- Started Windows PowerShell as an admin
- Typed: Set-ExecutionPolicy RemoteSigned
- 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
- 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?