-
-
Notifications
You must be signed in to change notification settings - Fork 27k
typo in '--help': index -> create-react-app #1796
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Oops. Not sure when we broke this. |
I'm using Windows 10. I downloaded the node (and npm) from the latest stable release as of today, from the nodejs site. |
I don't know if it is relevant, but I am also using Git Bash. |
Still, this would help:
There is a good reason these commands are in the issue template. 😉 |
I have node v6.2.1, npm v3.10.8 on OSX v10.11.6 and create-react-app@1.3.0, and I see this output:
|
Can easily reproduce this on Windows 10 in Git Bash, as @funderburkjim points out, with latest stable Node and NPM (Node v6.10.0, NPM v.3.10.10). I think the issue is in what The difference between OSs here is that on OS X #!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/node_modules/create-react-app/index.js" "$@"
ret=$?
else
node "$basedir/node_modules/create-react-app/index.js" "$@"
ret=$?
fi
exit $ret Long story short, it explicitly calls I might be missing a lot of context being a complete newbie here, but it looks like right now a canonical way to use |
Looks like we can explicity pass a name by changing https://github.com/facebookincubator/create-react-app/blob/master/packages/create-react-app/createReactApp.js#L26 from |
Good idea, thank you @Timer. Created a PR with a change that does exactly that. Please let me know what you think. |
I am a beginning to learn react.
After installing create-react-app, I issued the (empty) command
As you see, the word 'index' appears where the word 'create-react-app' should appear.
Similar typo in 'create-react-app --help'.
This small typo is confusing to the beginner.
The text was updated successfully, but these errors were encountered: