A solution for running expo on local machine error on Windows :
- Open Windows PowerShell with Run as Administrator
- Run this command:
Set-ExecutionPolicy Unrestricted
Problem solved.
Explanation
Issue:
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.
So if you ever get this error, simply you can follow these steps to solve the issue-
Step 1:
Open Windows PowerShell with Run As Administrator.
Step 2:
As you see the error is about_Execution_Policies, first to see what's there in the present execution policy. Use this command on Windows PowerShell to get it
Get-ExecutionPolicy
Here you'll see 'Restricted'. So, this is the main reason- running scripts on this system is 'Restricted'.
Step 3:
Now we need to change this policy to allow the operation. Use this command to make it Unrestricted -
Set-ExecutionPolicy Unrestricted
Here you'll get a prompt message. Press Y to change it
That's it. To ensure, you may check the execution policy status by this command again
Get-ExecutionPolicy
You'll get the output 'Unrestricted'
The problem is solved. Now you can use expo on your machine.
Go back to Tradecoder Dev Solution
Read more on Expo - React Native
If you find this information helpful, please feel free to share it with you network...