DEV Community

Discussion on: Unable to create a React App

azeezgaa profile image
azeezgaa Author

PS C:\myfirstapp> create-react-app myfirstapp
create-react-app : File C:\Users\MY PC\AppData\Roaming\npm\create-react-app.ps1 cannot be loaded because running
scripts is disabled on this system. For more information, see about_Execution_Policies at
At line:1 char:1

  • create-react-app myfirstapp
  • ~~~~~~~~~~~~~~~~
    • CategoryInfo : SecurityError: (:) [], PSSecurityException
    • FullyQualifiedErrorId : UnauthorizedAccess PS C:\myfirstapp> ^C PS C:\myfirstapp>

Above is the error i am getting when i try to create a app without npx

samuelorobosa profile image
Samuel Amagbakhen

Run the command prompt as admin and try again