Skip to content

Looks like you installed react-native globally, maybe you meant react-native-cli? #364

Closed
@baba43

Description

@baba43

Description

After ejecting, none of the react-native tasks seem to work. I'm not sure if this problem is related to create-react-native-app (or at least could be solved here), but I would like to report it anyway.

Expected Behavior

I guess it should just work.

Observed Behavior

Got the folling message:

Looks like you installed react-native globally, maybe you meant react-native-cli?
To fix the issue, run:
npm uninstall -g react-native
npm install -g react-native-cli
error Command failed with exit code 1.

Even after running those commands, the problem is still here.

Environment

Please run these commands in the project folder and fill in their results:

  • npm ls react-native-scripts: (empty)
  • npm ls react-native: 0.46.1 (tried 0.47.1 too)
  • npm ls expo:
  • node -v: 8.3.0
  • npm -v: 5.3.0
  • yarn --version: 0.27.5
  • watchman version: 4.9.0

Also specify:

  1. Operating system: Windows

Reproducible Demo

  1. Create new project with create-react-native-app
  2. Run eject
  3. Run android or any other task

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions