Open Hifilo opened 1 year ago
Is Firefox your default browser? What's your "browser" settings in the extension or its config file?
Does the command npx five-server@latest . --browser="asdf,firefox"
work?
First it should try the browser "asdf" which does not exist, then it should open firefox.
Does the command
npx five-server@latest . --browser="asdf,firefox"
work? First it should try the browser "asdf" which does not exist, then it should open firefox.
Thanks @yandeu , firefox is set as the default browser in settings.json. I also changed it to chrome to see if it makes any difference. The server launches, but the browser doesn't. If I open the link in the browser it functions as expected.
Running npx five-server@latest . --browser="asdf,firefox"
first told me to install five server which I did. After reload, running command gives:
Five Server running at:
> Local: http://localhost:5500
> Network: http://172.19.51.25:5500
node:events:491
throw er; // Unhandled 'error' event
^
Error: spawn asdf 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 asdf',
path: 'asdf',
spawnargs: [ 'http://127.0.0.1:5500' ]
}
Node.js v18.16.0
if its of any help, I can't automatically open browser with live server, or live preview.
Hi just to give an update.
The issue seems to only affect my WSL/Linux Distro It works fine when launched from index.html within windows OS. Perhaps you may know off hand solution, or where I might find cause?
For me it works on WSL as well.
Maybe try to re-install your WSL instance:
# list all your wsl installs
wsl --list
# delete a wsl distribution
wsl --unregister NAME
# install new distribution
wsl --install
# set a new default distribution
wsl --set-default NEW_NAME
Actually, I just tested it on a fresh install WSL + Ubuntu 22.04 + Node.js v20.1.0. It only works when I try to open the default browser, but not, as you wrote above, when I try to open firefox.
Actually, I just tested it on a fresh install WSL + Ubuntu 22.04 + Node.js v20.1.0. It only works when I try to open the default browser, but not, as you wrote above, when I try to open firefox.
Can confirm the same thing happening for me on a fresh install w/ Ubuntu.
Can you test the latest dev version please?
npx five-server@dev . --browser="asdf,firefox"
running gives result:
Five Server running at:
> Local: http://localhost:5500
> Network: http://172.22.93.9:5500
node:events:491
throw er; // Unhandled 'error' event
^
Error: spawn asdf 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 asdf',
path: 'asdf',
spawnargs: [ 'http://127.0.0.1:5500' ]
}
if I just write: npx five-server@dev . --browser="firefox"
Five Server running at:
> Local: http://localhost:5500
> Network: http://172.22.93.9:5500
node:events:491
throw er; // Unhandled 'error' event
^
Error: spawn firefox 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 firefox',
path: 'firefox',
spawnargs: [ 'http://127.0.0.1:5500' ]
}
No browser opens
Seems to be a new issue as it was working fine before. first sign of problem was opening in firefox devmode loaded site in darkmode, even even if set to light . Then browsers stopped loading automatically later in the day. Loads fine if I manually input the link in any browser.
similar error for firefox.
I noticed the other live server extensions are having similar technical issues as well.
Cheers.