Skip to main content

Posts

Showing posts from February, 2024

Expo : cannot be loaded because running scripts is disabled on this system.

 expo : File C:\Users\HP\AppData\Roaming\npm\expo.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. At line:1 char:1 + expo start + ~~~~   + CategoryInfo     : SecurityError: (:) [], PSSecurityException     + FullyQualifiedErrorId : UnauthorizedAccess Nayak Tech, Here to help you resolve the error preventing you from running expo start . The error indicates that PowerShell script execution is disabled on your system, blocking Expo's PowerShell script from running. Here's how to enable script execution: Open PowerShell as Administrator: Right-click the Start button and select "Windows PowerShell (Admin)". Check Current Execution Policy: Type Get-ExecutionPolicy and press Enter. If it's "Restricted", you'll need to change it. Set Execution Policy to "RemoteSigned" (Recommended): Type Set-ExecutionP...