Skip to content

Command run-platform unrecognized. Make sure that you have run npm install and that you are inside a react-native project. #15477

Closed
@zhyilong

Description

@zhyilong

Is this a bug report?

(write your answer here)

Have you read the Contributing Guidelines?

(Write your answer here.)

Environment

  1. react-native -v 0.47.1:
  2. node -v 8.1.3:
  3. npm -v 5.0.3:
  4. yarn --version 0.27.5

Then, specify:

  • Target Platform:
  • Development Operating System: macOS Sierra
  • Build tools:

Steps to Reproduce

(Write your steps here:)

  1. i create project and run on iOS and Android well done;
  2. npm install --save react-navigation and install smoothly;
  3. react-native run-platform after notice: "ommand run-android unrecognized. Make sure that you have run npm install and that you are inside a react-native project."
  4. run npm install but notice error still;

Expected Behavior

(Write what you thought would happen.)

Actual Behavior

(Write what happened. Add screenshots!)

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions