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

init unhelpfully fails when run in an existing project directory #1141

Closed
fcanas opened this issue May 4, 2015 · 1 comment · Fixed by #1142
Closed

init unhelpfully fails when run in an existing project directory #1141

fcanas opened this issue May 4, 2015 · 1 comment · Fixed by #1142
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@fcanas
Copy link

fcanas commented May 4, 2015

To reproduce:

From a directory that is set up as a React-Native project, or simply has content in /node_modeuls/react-native, run react-native init NewProject

Expected behavior:

Either

  1. create a new nested project in the present directory, or
  2. inform the user that a new project cannot be created in the current directory

Observed Behavior:

$ react-native init AwesomeNewThing
Command `init` unrecognized
Usage: react-native <command>

Commands:
  start: starts the webserver
  install: installs npm react components
  bundle: builds the javascript bundle for offline use
$

I found this behavior particularly frustrating because the current directory didn't contain a functional React Native project, but rather a half-way created one that failed because I didn't have the correct versions of node. It appeared to me that I had yet another incorrectly configured environment for React Native development.

@frantic
Copy link
Contributor

frantic commented May 4, 2015

Thanks for reporting!

@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants