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 WIth Bun #1

Open
shinnthantminn opened this issue Sep 10, 2023 · 5 comments
Open

Create React App Error WIth Bun #1

shinnthantminn opened this issue Sep 10, 2023 · 5 comments

Comments

@shinnthantminn
Copy link

I am using create react app with bun js but show me this error

error: could not determine executable to run for package create-react

How Can i solve this

@birmehto
Copy link

i also have the save issue with bun

@kerosan
Copy link

kerosan commented Sep 12, 2023

looks its typo
try to use react-app instead of react

@amanda-shlee
Copy link

i'm also getting the same error on MacOS
error: could not determine executable to run for package create-react

I've tried

  • bun create react bun-bun-react
  • bunx create-react bun-bun-react
  • bun create react ./app

@amanda-shlee
Copy link

i've found the solution.
First, create a folder, e.g. mkdir folder
Then, run bunx create-react-app ./folder

@kinyenzm
Copy link

kinyenzm commented Nov 6, 2023

Hello after typing bun create react-app app_bun I get this:

Creating a new React app in /home/user/react/app_bun

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...


Aborting installation.
Unexpected error. Please report it as a bug:
605 |   }
606 |   get stdio() {
607 |     return this.#stdioObject ??= this.#createStdioObject();
608 |   }
609 | 
610 |   spawn(options) {
                 ^
TypeError: Executable not found in $PATH: "npm"
 code: "ERR_INVALID_ARG_TYPE"

      at spawn (node:child_process:610:14)
      at node:child_process:2:40
      at spawn (/tmp/create-react-app@latest--bunx/node_modules/cross-spawn/index.js:12:20)
      at /tmp/create-react-app@latest--bunx/node_modules/create-react-app/createReactApp.js:383:18
      at new Promise (:1:20)
      at install (/tmp/create-react-app@latest--bunx/node_modules/create-react-app/createReactApp.js:334:9)
      at /tmp/create-react-app@latest--bunx/node_modules/create-react-app/createReactApp.js:461:15
      at processTicksAndRejections (:61:76)


Deleting generated file... package.json
Deleting app_bun/ from /home/user/react/app_bun
Done.

I'm using wsl:deepin

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

No branches or pull requests

5 participants