So, if you see this error don’t worry stay cool you can solve this by following this step
.
Step 1: Open Windows PowerShell with Run as Administrator
.
Step 2: use (Get-ExecutionPolicy) this command on Windows PowerShell to see the execution policy
.
Most probably there you would see (Restricted) this command. So, the main reason-running scripts on this system are Restricted.
.
Step 3: Now we need to change this policy to allow the operation. Use this command to make it Unrestricted
.
Use (Set-ExecutionPolicy Unrestricted) this command
.
here you will get a prompt message and you should press 'Y' to change from Restricted to Unrestricted.
That’s it.
.
To ensure, you may check the execution policy by this
(Get-ExecutionPolicy) command again.
The possible output should be (Unrestricted)
.
The problem is solved. Now you can use the expo start command on your machine.
.
Happy Coding.
osman forhad
Mobile & Web Application Developer💻
developer.osmanforhad@gmail.com
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (13)
Thaks a lot. I solve this problem smoothly........... What a great feeling ................
I was literally stressed about this thing. Thank you very much
Same i slapped my head 3 times until i found this site
Thank you so much:) You're awesome
Thank you so much!
Life saver, thank you!!!
Thanks for this Osman!
This works, thanks man 😁😁
Helped me <3 Thanks
Only Get-ExecutionPolicy command is running
Why Set-ExecutionPolicy Unrestricted command is not runing
I am working 1st time on broadcasting in laravel
so when runing laravel-echo-server init command then powershell issue is showing