craftcms icon indicating copy to clipboard operation
craftcms copied to clipboard

Vite won't start up after a fresh install

Open E2design opened this issue 1 year ago • 0 comments

Installed already a couple of times following your instructions. But I keep getting the following issue.

` VITE v4.5.2 ready in 329 ms

➜ Local: http://localhost:3000/ ➜ Network: http://172.27.0.3:3000/ ➜ Network: http://192.168.208.3:3000/ ➜ press h to show help

Shortcuts press r to restart the server press u to show server url press o to open in browser press c to clear console press q to quit node:events:491 throw er; // Unhandled 'error' event ^

Error: spawn xdg-open 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) Emitted 'error' event on ChildProcess instance at: at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) at onErrorNT (node:internal/child_process:485:16) at processTicksAndRejections (node:internal/process/task_queues:83:21) { errno: -2, code: 'ENOENT', syscall: 'spawn xdg-open', path: 'xdg-open', spawnargs: [ 'http://localhost:3000/' ] } Failed to execute command npm run serve: exit status 1 make: *** [dev] Error 1`

E2design avatar Feb 20 '24 11:02 E2design