Comments (6)
Python tends to be more readily available (e.g. installed by default on most Linux distros) than Node. If you are going to npm install
something to get a tiny development server, might as well npm install live-server
😄
from live-server.
Python is only installed by default on OSX, as far as I know. Not all linux auto-install it, and Windows sure as hell doesn't come with Python (installing it is a small pain because the official release is a third party installer)
On the other hand, because people come here for live-server, you know they already have node and npm installed. Why not tell them to use something they can install the exact same way they would live-server for when live-server isn't enough? (which is what that line in the README was about. Saying "if liver-server isn't enough, install live-server because you're already using node" makes very little sense ;)
from live-server.
The thing is we don't know if people have Node installed. They can find live-server through a Google search and maybe not even have heard of Node.js, at which point they need to install node whether they'd like to use live-server or http-server. My rationale for giving that python example is a) given a random machine, I think there's a greater chance that python is installed than node (even now two years after I wrote the initial readme, but feel free to argue otherwise) and b) http-server example would be two lines and require additional install:
npm install -g http-server
http-server
(Still, maybe I'll add that as an alternative, or remove the thing altogether).
from live-server.
my 2 cents there is that that's being needlessly confusing. While, indeed, they might find it through google, how are they going to install live-server without npm? And if they already use python and need a live server, why would they even bother with a node module instead of using pip installed livereload
?
Basically I don't understand why you'd advocate using another scripting language when the only way to install live-server itself is to have node. Saying "if you don't have node, use Python", fair enough, but in this case the README says 'if you need more, use python', and that doesn't make sense =)
Also, don't undersell your userbase: you get hundreds of dowloads per week through npm - all those people have node ;)
from live-server.
but in this case the README says 'if you need more, use python', and that doesn't make sense =)
Where did you get that? It says: "If you don't want/need the live reload, you should probably use something simpler, like the following Python-based one-liner:" (emphasis added)
Also, don't undersell your userbase: you get hundreds of dowloads per week through npm - all those people have node ;)
Npm is pretty much the only way live-server is distributed, so naturally most downloads come from there. There is however no way of knowing how many of them needed to install node and npm just to get live-server. The thing I'm trying to say between the lines with the python one-liner is: If you just need a quick server and don't care about live reload, you already might have that if you have python, so you don't need to sweat about installing node and an additional package.
from live-server.
hah, that's me totally misreading! But on the second note: can the readme be reworded or ammended to not ignore the huge population of windows users? =)
(by all means keep the python line in there, but help those users without python installed out by saying that python's a decent choice if you already have it, but that otherwise live-server's the easiest or something. Right now it reads like everyone should already be able to do so, and I know for a fact that there's tons of people for whom this will be a head scratcher, about as likely to already have node as they are to have python)
from live-server.
Related Issues (20)
- Live-server doesn't view changes automatically
- up to date alternative HOT 3
- It doesn't reload on changes HOT 2
- Prevent script injection in an iframe HOT 1
- liveReload no work in WSL2
- Does not load at all
- Live-server links to local files do not work HOT 6
- https not working properly
- How can I get live-server to work with URLs that are prepended with a base URL during production builds?
- Consider moving to esm and then build for cjs HOT 2
- Install anguar app but when refresh its coming 404 error, route not working
- 'live-server' is not recognized as the name
- Should entry file flag take precedence over the index file?
- On mac, installed live-server but the main script has CRLF line terminators HOT 2
- live-server watching .git directory changes HOT 1
- live-server very slow for some reason (like 3G network) HOT 1
- Browser doesn't refresh if script tag is added
- I can't install live-server! HOT 2
- No live reload on files with no <head> HOT 1
- liveserver issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from live-server.