Open chrissound opened 1 year ago
codewarrior@blueberry:/home/chris/temp/wiptemp/774/purescript-halogen-template$ npm run serve > serve > parcel dev/index.html --open Port "1234" could not be used 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:38331' ] } Segmentation fault (core dumped)
I tried changing parcel to serve on port 1235 instead but run into the same issue:
codewarrior@blueberry:/home/chris/temp/wiptemp/774/purescript-halogen-template$ npm run serve > serve > parcel -p 1235 dev/index.html --open 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:1235' ] } Segmentation fault (core dumped)
Googling this issue and figuring out it's to do with xdg-open, I removed the --open from package.json which then fixes the issue.
--open
Huh! That's odd. I'm fine with removing --open if you'd like to open a PR.
I tried changing parcel to serve on port 1235 instead but run into the same issue:
Googling this issue and figuring out it's to do with xdg-open, I removed the
--open
from package.json which then fixes the issue.