PS C:\Users\X\React\Calculator-2.0> npx expo init $ expo init is not supported in the…
- User
PS C:\Users\X\React\Calculator-2.0> npx expo init
$ expo init is not supported in the local CLI, please use npx create-expo-app instead
PS C:\Users\X\React\Calculator-2.0> expo init expo : File C:\Users\X\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 init
-
+ CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess
- Assistant
The error message you're seeing when trying to use the
expo initcommand indicates that the PowerShell execution policy on your system is preventing the execution of scripts, which is why theexpo.ps1script can't run.To solve this problem, you can change the execution policy on your system to allow these scripts to run. However, it's important to note that changing the execution policy can have security implications, so make sure you understand the consequences before proceeding.