tisztamo / Junior

AI-First IDE which fully codes itself: No code was written by humans here.
https://aijunior.dev
MIT License
22 stars 7 forks source link

Fix ENOENT, syscall: 'spawn xdg-open' on Ubuntu server #82

Open tisztamo opened 10 months ago

tisztamo commented 10 months ago

tisztamo@kibana:~/x$ npx junior-web -- --host This is a development server, absolutely unsecure, it should only be exposed in a local network or vpn. Server is running on port 10101 ➜ Local: http://localhost:5173/ ➜ Network: http://192.168.102.102:5173/ node:events:492 throw er; // Unhandled 'error' event ^

Error: spawn xdg-open 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 xdg-open', path: 'xdg-open', spawnargs: [ 'http://localhost:5173/' ] }

Node.js v18.17.1

Project Description

Hey, Contributor!

Please help us select the best next communication platform for the project!

Vote here: https://github.com/tisztamo/Junior/issues/78

Interpret issues freely. Need help or have ideas? Comment right here.

Note: We eat our own dog food. We use Junior to work on Junior. Please, do not turn off the audit feature!

Keep it friendly, that's our vibe.

Happy contributing!

tisztamo commented 10 months ago

Workaround: sudo apt-get install xdg-utils