SPFx - Error Message - cannot be loaded because running scripts is disabled on this system. for more information vs code spfx
Solution - First, Open PowerShell with Run as Administrator. Then, run this command in PowerShell Set-ExecutionPolicy -ExecutionPolicy RemoteSigned After that type Y and press Enter.