`yarn start` fails with error message
Created by: mocheng
Description
yarn start
fails 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
- Globally install
create-react-app
and create one project calledxyz
. - Follow the prompt instructions;
-
yarn start
fails, butnpm start
works.