sublime-live-server icon indicating copy to clipboard operation
sublime-live-server copied to clipboard

Unable to use live server

Open KingDamo17 opened this issue 4 years ago • 14 comments

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.

KingDamo17 avatar Feb 25 '22 21:02 KingDamo17

Did you set up the plugin according to the documentation? https://github.com/molnarmark/sublime-live-server#-settings

molnarmark avatar Feb 26 '22 09:02 molnarmark

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

monavari-lebrecht avatar Mar 17 '22 22:03 monavari-lebrecht

The default settings indeed work, but only on Linux. Any other OS, you need to change the settings.

molnarmark avatar Mar 17 '22 22:03 molnarmark

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...

fawadta avatar Mar 23 '22 17:03 fawadta

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.

risejs avatar May 23 '22 02:05 risejs

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!

guillermodelrio avatar Jun 10 '22 03:06 guillermodelrio

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.

haighd22 avatar Sep 27 '23 09:09 haighd22

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 avatar Sep 14 '24 16:09 kyle-wendling

@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.

molnarmark avatar Sep 14 '24 23:09 molnarmark