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

watch script fails to run if run with Bun and no NodeJs is installed #3373

Open
samjurriaans opened this issue Sep 16, 2023 · 0 comments
Open

Comments

@samjurriaans
Copy link

  • Laravel Mix Version: 6.0.49
  • Bun Version: 1.0.1 (and current latest image)
  • Node Version (node -v):
  • NPM Version (npm -v):
  • OS: Linux

Description: I installed Bun to run my package.json script, one of which is the 'mix watch' script. When no NodeJs is installed the script outputs two times ".env" whereafter it throws an error something like 'yargs is no function ... yargs is a module bladiebla'

I installed NodeJs in my Bun docker image, after which Bun does successfully run the 'mix watch' script.

Steps To Reproduce:

  • try to run 'mix watch' script with Bun, without having NodeJs installed, and watch it fail,
  • install NodeJs on the same system Bun is installed after which Bun can successfully run 'bun run watch' (which runs 'mix watch')

NOTE: this issue is mainly opened to help other people quickly solve the same problem. I am not interested in researching this problem any further myself

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

1 participant