Unable to use live server
Sublime text shows the live server command palette but does not do anything if I hit start or stop.
I am on mac and new to programming, so I could not clean up the npm audit. If I even need to.
Did you set up the plugin according to the documentation? https://github.com/molnarmark/sublime-live-server#-settings
Tried it by myself, but what do you mean by setting it up. The default settings should work out of the box, shouldnt they?
The problem is, that it doesnt show any update, after doing the start command. And when you try to run Open Live server in Browser, it says, Live server isnt running
The default settings indeed work, but only on Linux. Any other OS, you need to change the settings.
Did you set up the plugin according to the documentation? https://github.com/molnarmark/sublime-live-server#-settings
yea i did. but on live server start and stop, it don't do anything but on live server open in browser it displays: live server isnt running. nothing to open I dont know what to do...
For Windows:
{
"node_executable_path": "C:/Program Files/nodejs/node",
"global_node_modules_path": "C:/Users/User/AppData/Roaming/npm/node_modules"
}
/User/ is your user name.
for Mac users:
{
"node_executable_path": "/usr/local/bin/node",
"global_node_modules_path": "/usr/local/lib/node_modules",
}
Also, make sure you have saved first your working file before attempting to launch Live Server from the command palette!
for Mac users:
{ "node_executable_path": "/usr/local/bin/node", "global_node_modules_path": "/usr/local/lib/node_modules", }Also, make sure you have saved first your working file before attempting to launch Live Server from the command palette!
is it always "node_executable_path": "/usr/local/bin/node",? I ran whereis node as per the readme and got a path of "/usr/bin/node /usr/include/node /usr/share/man/man1/node.1.gz". Neither seems to work as the node_executable_path within settings and I get the same issue as the OP.
Any help much appreciated.
No offense, but this thing is a bit of a trainwreck, it doesn't run, but says it's 'running' per problems above even with correct dirs, but the thing that makes it bad software is it outputs no debug information on failure to the console, just silently not working but pretending it is. I got a python script to solve the same function of starting a server working in sublime as a plugin in about 5 min to replace this.
@kyle-wendling Great, so use that instead.
This package is just a wrapper around an npm library. I don't control anything when it comes to that particular library, as I didn't write it. This package currently has ~58.000 installs, most people with issues were able to solve them, and this is the same package that powers VSCode's version of this package. If you really want to complain, this is where you need to go. It looks like you really felt the need to complain before checking out what the package actually does.