DEV Community

Discussion on: Unable to create a React App

Collapse
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
https:/go.microsoft.com/fwlink/?LinkID=135170.
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

Collapse
samuelorobosa profile image
Samuel Amagbakhen

Run the command prompt as admin and try again