question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

-bash: create-react-app: command not found

See original GitHub issue

Is this a bug report?

Yes

Can you also reproduce the problem with npm 4.x?

Yes

Which terms did you search for in User Guide?

command not found

Environment

[09:00 PM]-[eneff@Ethans-Mac]-[~/Desktop]-[]
$ node -v
v6.11.4

[09:00 PM]-[eneff@Ethans-Mac]-[~/Desktop]-[]
$ npm -v
4.6.1

[09:00 PM]-[eneff@Ethans-Mac]-[~/Desktop]-[]
$ npm install -g create-react-app
npm WARN deprecated connect@2.30.2: connect 2.x series is deprecated
npm WARN native-base@2.3.2 requires a peer of react-native-vector-icons@~4.3.0 but none was installed.
npm WARN react-native-gesture-handler@1.0.0-alpha.25 requires a peer of react@> 15.0.0 but none was installed.
npm WARN react-native-branch@2.0.0-beta.3 requires a peer of react@>=15.4.0 but none was installed.
npm WARN lottie-react-native@1.1.1 requires a peer of react@>=15.3.1 but none was installed.

[09:01 PM]-[eneff@Ethans-Mac]-[~/Desktop]-[]
$ create-react-app my-app
-bash: create-react-app: command not found

Mac 10.13 (17A365)

Steps to Reproduce

  1. Install Node
  2. Follow Guide

Expected Behavior

create-react-app my-app works

Actual Behavior

create-react-app my-app fails

Reproducible Demo

n/a

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

22reactions
learnwithalfredcommented, May 1, 2018

This worked for me

npx create-react-app my-app

just preview create-react-app with “npx”

4reactions
fsrocha-devcommented, Jun 30, 2018

This Solution. npx create-react-app my-app

Read more comments on GitHub >

github_iconTop Results From Across the Web

create-react-app, installation error ("command not found")
Step # 1:- Make sure, Node js and React js is installed globally. You can check Nodejs by node --version . If not...
Read more >
create-react-app: command not found (React) error [Solved]
Use `npx` to solve the error create-react-app: command not found, e.g. `npx create-react-app my-app` or install the package globally by running `npm install ......
Read more >
npx create-react-app is not working · Issue #10132 - GitHub
First, you'll need to uninstall "create-react-app" using the "npm uninstall -g create-react-app" command. Run "npx create-react-app my-app" each ...
Read more >
How to Solve the 'create-react-app command not found' Error
The 'create-react-app command not found' error occurs because we're trying to run it locally when it's not installed.
Read more >
npm WARN exec - package was not found: create-react-app
Then you might be wondering what the problem is. It means that the package create-react-app is not installed, or at least not available...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found