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

Error: spawn bin/console ENOENT #453

Closed
NOaMTL opened this issue Jan 5, 2023 · 7 comments
Closed

Error: spawn bin/console ENOENT #453

NOaMTL opened this issue Jan 5, 2023 · 7 comments

Comments

@NOaMTL
Copy link

NOaMTL commented Jan 5, 2023

Hello, I am trying to install the package, I am using webpack encore, following the doc, using .addPlugin(new FosRouting()), and I have this error when I run yarn watch.

Error: spawn bin/console ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:485:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn bin/console',
  path: 'bin/console',
  spawnargs: [
    'fos:js-routing:dump',
    '--target=C:\\ALTIS\\symfony\\project\\var\\cache\\fosRoutes.tmp.json',
    '--format=json'
  ],
  cmd: 'bin/console fos:js-routing:dump --target=C:\\ALTIS\\symfony\\project\\var\\cache\\fosRoutes.tmp.json --format=json',
  stdout: '',
  stderr: ''
}

I am using Windows 11, Symfony 6.2, yarn 1.22.19, npm 8.19.2, php 8.1, FOSJS 3.2.1.

Thank you.

@mehdichati
Copy link

I have the same issue, in my CI/CD

@pentiminax
Copy link

I have the same issue

@benjaminfunk
Copy link

Same here. Nearly the same environment like NOaMTL

@benjaminfunk
Copy link

benjaminfunk commented Apr 13, 2023

maybe it has something to do with #444

Edit: #444 will fix the problem on windows machines!

@tobias-93
Copy link
Collaborator

Hi all, I've just released version 3.3.0 with the fix included. Please let me know if that is working for you.

@benjaminfunk
Copy link

It works for me. Thank you!

@tobias-93
Copy link
Collaborator

Perfect, closing the issue 👍🏼

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