Skip to content

yarn start fails with error message #1155

@mocheng

Description

@mocheng

Description

yarn startfails with below message

yarn start v0.15.1
$ "react-scripts start"
sh: react-scripts start: command not found
error Command failed with exit code 127.
info Visit http://yarnpkg.com/en/docs/cli/start for documentation about this command.

Expected behavior

According to the prompt after creating a project, yarn star should work.

We suggest that you begin by typing:
cd xyz
yarn start
Happy hacking!

Actual behavior

Tell us what actually happens.

Environment

node -v
v7.2.0

npm -v
3.10.9

create-react-app --version                                                                                                                 
create-react-app version: 1.0.0

Operating system: MacOSX 10.12.1

Reproducible Demo

  1. Globally install create-react-app and create one project called xyz.
  2. Follow the prompt instructions;
  3. yarn start fails, but npm start works.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions