Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ethanneff opened this issue Oct 5, 2017 · 10 comments
Closed

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

ethanneff opened this issue Oct 5, 2017 · 10 comments

Comments

@ethanneff
Copy link

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

@tharakawj
Copy link
Contributor

This is probably an issue in your PATH. Did you try fixes suggested in #138, #1182, #962 ?

@ethanneff
Copy link
Author

ethanneff commented Oct 5, 2017

Figured it out. $PATH was fine. I had a directory called create-react-app which was conflicting with npm install -g create-react-app.

Thanks!

@kaixinfu
Copy link

I have the same problem!

@learnwithalfred
Copy link

This worked for me

npx create-react-app my-app

just preview create-react-app with "npx"

@davidshare
Copy link

Hi. So how does someone solve the issue of path in linux

@Mogust
Copy link

Mogust commented Jun 14, 2018

yap you'r right sir @nkuranhy3 , that npx worked on me too

@fsrocha-dev
Copy link

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

@veselin0
Copy link

npx create-react-app my-app
Worked for me, too.
Thank you.

@ivanglubish
Copy link

npx create-react-app my-app
It's work. Thank you ))

@victorgianvechio
Copy link

npx worked for. Thank you!

@lock lock bot locked and limited conversation to collaborators Jan 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants