Yes
Yes
command not found
[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 [email protected]: connect 2.x series is deprecated
npm WARN [email protected] requires a peer of react-native-vector-icons@~4.3.0 but none was installed.
npm WARN [email protected] requires a peer of react@> 15.0.0 but none was installed.
npm WARN [email protected] requires a peer of react@>=15.4.0 but none was installed.
npm WARN [email protected] 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)
create-react-app my-app
works
create-react-app my-app
fails
n/a
This is probably an issue in your PATH. Did you try fixes suggested in https://github.com/facebookincubator/create-react-app/issues/138, https://github.com/facebookincubator/create-react-app/issues/1182, https://github.com/facebookincubator/create-react-app/issues/962 ?
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!
I have the same problem!
This worked for me
just preview create-react-app with "npx"
Hi. So how does someone solve the issue of path in linux
yap you'r right sir @nkuranhy3 , that npx worked on me too
This Solution.
npx create-react-app my-app
npx create-react-app my-app
Worked for me, too.
Thank you.
npx create-react-app my-app
It's work. Thank you ))
npx worked for. Thank you!
Most helpful comment
This worked for me
npx create-react-app my-app
just preview create-react-app with "npx"