'running scripts is disabled for firebase hosting in vscode terminal

firebase : File C:\Users\CHRISTIN UNION\AppData\Roaming\npm\firebase.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.



Solution 1:[1]

Open windows PowerShell as a Administrator mode. Run this command:

set-executionpolicy remotesigned

Then, type y to yes to all. Hope this will work.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Hayeul Tanjib