If i run npx or npm install create-react-app in my windows terminal. Is displaying error s

272 views Asked by At

It always refer me to another directory in my computer and I can really access that folder. I was told to run npx instead of npm but but that still revert back to the former issues. Please can someone help me? am using windows terminal

2

There are 2 answers

1
zLupim On BEST ANSWER

You're using npm instead of npx.

You'll need to install npx, to do that use that command from npm: npm install -g npx

And then, you can use npx create-react-app my-app

Sudo is a command common available in Linux and is used to run a command with Administrator or root permissions.

1
AudioBubble On
npx create-react-app my-app
cd my-app
npm start