molnarmark / sublime-live-server

🌍️ Launch a Development Server directly from Sublime Text
https://github.com/molnarmark/sublime-live-server
MIT License
64 stars 8 forks source link

Unable to use live server #9

Open KingDamo17 opened 2 years ago

KingDamo17 commented 2 years ago

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.

molnarmark commented 2 years ago

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

monavari-lebrecht commented 2 years ago

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

molnarmark commented 2 years ago

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

fawadta commented 2 years ago

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

risejs commented 2 years ago

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.

guillermodelrio commented 2 years ago

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!

haighd22 commented 11 months ago

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.