Search code examples
create-react-appnpm-installwindows-terminal

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


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


Solution

  • 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.