evidence-dev / docker-devenv

This repo builds a Docker image whose container instances can be used as a development environment for Evidence projects via a mounted directory
MIT License
12 stars 6 forks source link

the container fails, node:events:491 #13

Closed jehout closed 10 months ago

jehout commented 1 year ago

hi, I started the container, but it fails serving the pages Any idea what is going wrong and/or how to solve this?

here the output:


my-evidence-project@0.0.1 dev evidence dev --open / --host 0.0.0.0

npm info using npm@9.5.1 npm info using node@v18.16.0

VITE v4.3.9 ready in 15348 ms

➜ Local: http://localhost:3000/ ➜ Network: http://10.0.2.100:3000/ ➜ press h to show help node:events:491 throw er; // Unhandled 'error' event ^

Error: spawn /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe ENOENT at ChildProcess._handle.onexit (node:internal/child_process:283:19) at onErrorNT (node:internal/child_process:476:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) Emitted 'error' event on ChildProcess instance at: at ChildProcess._handle.onexit (node:internal/child_process:289:12) at onErrorNT (node:internal/child_process:476:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -2, code: 'ENOENT', syscall: 'spawn /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe', path: '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe', spawnargs: [ '-NoProfile', '-NonInteractive', '–ExecutionPolicy', 'Bypass', '-EncodedCommand', 'UwB0AGEAcgB0ACAAIgBoAHQAdABwADoALwAvAGwAbwBjAGEAbABoAG8AcwB0ADoAMwAwADAAMAAvACIA' ] }

jehout commented 10 months ago

this was a problem with Podman; with Docker it works.