Giter Club home page Giter Club logo

Comments (6)

tapio avatar tapio commented on June 26, 2024

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.

Pomax avatar Pomax commented on June 26, 2024

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.

tapio avatar tapio commented on June 26, 2024

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.

Pomax avatar Pomax commented on June 26, 2024

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.

tapio avatar tapio commented on June 26, 2024

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.

Pomax avatar Pomax commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.