-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It's not working on my sublime text #2
Comments
Did you set the |
I left it as it's default settings. What am I meant to change it to? |
There is a section in the readme for this: https://github.com/molnarmark/sublime-live-server#node_executable_path |
Thanks. It's just showing 'localhost refused to connect'. Any reason why? And also is this a right pathing |
Yes, that looks right for Windows. |
Still didn't work. |
I was able to reproduce the issue, I'm gonna look into it shortly. |
I've pushed a quick fix here, please replace the contents of plugin.py with that (easiest to do with PackageResourceViewer Also, you can safely set the Let me know if this is fixed for you, if so, I'll test it tomorrow on Linux and push out a new release. |
After doing everything you mention in your reply above and restarting sublime text, it wasn't loading it kept on showing a directory of my folder. When I clicked on the one I wanted, it kept try to load but it didn't but when I closed sublime text, it started working. I'm trying find out what it was but I can't because I've tried everything and it still works. Thank you. |
I did everything as written in Readme.MD but the live server is launching the browser but localhost is not working |
I've been getting similar issues here, but I found out that restarting sublime text while localhost tries to load in your browser, will make it work. |
I did that too no progress |
Are you trying to start live server with a sublime project opened inside sublime text? (Project > Save Project As) |
Here's the fix for those of you who are having this issue: "node_executable_path":
"global_node_modules_path":
Hint: Make sure your directories exist, you can navigate to the ones pasted above to make sure they exist. The "global_node_modules_path" should be to the folder containing "live-server". Additionally, previously addressed above with the sublime project, I have submitted a Pull Request to allow live-server to be started with the open file's directory in mind. That means no more needing to "Open Folder" or "Save Project As". |
Please where do I find the live server settings on sublime text? |
@fanifrancs To change your settings, bring up the Command Palette and select: Preferences: Live Server Settings |
@fanifrancs by the way, to open Command Palette, use Ctrl + shift + p on windows. |
I have live server installed on sublime text 3 and also node.js, npm and live server installed globally on my pc. But live server doesn't start and in the console it writes "FileNotFoundError: [WinError 2] The system cannot find the file specified". I don't know what I'm doing wrong, could anyone please help me? Below is the complete code in console.
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 1088, in run_
return self.run(edit)
File "C:\Users\Other Users\AppData\Roaming\Sublime Text 3\Installed Packages\LiveServer.sublime-package\plugin.py", line 59, in run
File "./python3.3/subprocess.py", line 819, in init
File "./python3.3/subprocess.py", line 1110, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
The text was updated successfully, but these errors were encountered: