Closed TuurDutoit closed 6 years ago
This may be the issue of opn
library.
You can try following workaround: https://github.com/ritwickdey/vscode-live-server/issues/111#issuecomment-386779921
I hope Error: spawn EACCES
will be solved when vscode upgrade node version.
NPM has been fixed executable permission
from npm@5.4.0
When I start the live server, it starts fine, but it fails to open the browser automatically, with the following error:
The developer tools show the following error:
Digging a little deeper, the culprit seems to be that the
xdg-open
script in theopn
dependency (located for me at/home/tuur/.vscode/extensions/ritwickdey.LiveServer-3.2.1/node_modules/opn/xdg-open
) doesn't have the executable flag. When I manually set that flag, the browser is opened as expected.I looked at the
opn
source, and even installed it in a separate project, and the flag seems to be set there.My VS Code info:
I'm using LiveServer 3.2.1
My machine is running on elementary OS Loki (basically Ubuntu 16.04.3), with Node.js 9.11.1 and NPM 5.6.0