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

create react-app > Error Couldn't find the binary react-scripts start #12308

Closed
UpasnaGandhi opened this issue Apr 19, 2022 · 1 comment
Closed

Comments

@UpasnaGandhi
Copy link

Describe the bug

I have created new react app using yarn create react-app myapp and I got this response of Success!
Although, I am trying to run the app using yarn start after getting into the directory as mentioned. I am getting binary not found issue.
Please find the below response.

Success! Created myapp1 at C:\Users\UpasnaGhandi\Documents\Backup\myapp
Inside that directory, you can run several commands:
    Starts the development server.

  yarn build
    Bundles the app into static files for production.

  yarn test
    Starts the test runner.

  yarn eject
    Removes this tool and copies build dependencies, configuration files
    and scripts into the app directory. If you do this, you can’t go back!

We suggest that you begin by typing:

  cd myapp1
  yarn start

Happy hacking!
Done in 45.70s.
PS C:\Users\UpasnaGhandi\Documents\Backup> cd myapp1
PS C:\Users\UpasnaGhandi\Documents\Backup\myapp1> yarn start
yarn run v1.22.11
warning ..\..\..\package.json: No license field
$ react-scripts start
error Couldn't find the binary react-scripts start
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

yarn -version
1.22.11

** Solutions tried**

I tried, changing the scripts path in package.json

"start": "node_modules/react-scripts/scripts/start.js start"
 OR
"start": "node node_modules/react-scripts/scripts/start.js"
 OR
"start": "node_modules/react-scripts/bin/react-scripts.js start"

and then

yarn install
yarn start

Though, nothing worked.

@UpasnaGandhi UpasnaGandhi changed the title Creating New React App and facing issue "Couldn't find binary" create react-app > Error Couldn't find the binary react-scripts start Apr 19, 2022
@UpasnaGandhi
Copy link
Author

Got it fixed. It was related to yarn.
For solution reference, found the answers here, yarnpkg/yarn#6048
Closing the bug.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant