DEV Community

Discussion on: Unable to create a React App

Collapse
 
dhruvpatel profile image
Dhruv • Edited

You need to install the react app generator i.e. npm i -g create-react-app. Once that goes through, the npx command should work.

Collapse
 
dv297 profile image
Daniel Vu

"npx" is a special feature of NPM 6 that allows the execution of packages without requiring you to first globally install the package.

See this example in the npx documentation
npmjs.com/package/npx#one-off-invo...

Collapse
 
azeezgaa profile image
azeezgaa

Hi Daniel,

I did install the npm globally as npm install create-react-app -g then when i try create-react-app my-app it is not working when i try npm create-react-app my-app it did installed but it stops in the middle