0

I have started learning React JS. When I try running the command npx create-react-app myapp, I get this error:

Error: EPERM: operation not permitted, mkdir 'C:\Users\Sameha
command not found: create-react-app

Why is this happening? I have node version 14.17.5 installed.

1
  • 1
    are you running cmd with admin privileges? Commented Aug 24, 2021 at 3:18

4 Answers 4

2

it is a permission error. All you need to do is open Command Prompt as administrator, and run the same command again. It should hopefully solve your issue.

Sign up to request clarification or add additional context in comments.

Comments

1

Try to run it locally with npm instead:

npm install -g create-react-app

Then

npm create-react-app myapp

1 Comment

Thanks for the help, i tried this command and it worked.
0

I think you are uninstall the node and then reinstall the latest version, then it will be worked

1 Comment

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
0

npm create-react-app my-app doesn't work any more. Try npx create-react-app my-app

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.