Lightweight development only node server that serves a web app, opens it in the browser, refreshes when html or javascript change, injects CSS changes using sockets, and has a fallback page when a route is not found.
Questions tagged [lite-server]
125 questions
3
votes
0 answers
How to fix “Npm ERR! JSON.parse Unexpected string in JSON at position 5096”
I'm very new and I'm trying to stick to the steps followed by an instructor in Coursera. And I get an error after doing several steps and trying to run lite-server with npm run dev command in CMD:
C:\Users\Spifet\Documents\guia-hoteles>npm run…

Spifet
- 31
- 1
- 2
3
votes
4 answers
Getting Error While starting lite-server in npm
i did a fresh "npm init". put entry point : "index.html"
then installed lite-server : npm install lite-server --save-dev
also updated the package.json and I Uninstalled, reinstalled tried everything but it's not working and
also tried npm cache…

Sateesh Gollapudi
- 77
- 1
- 10
3
votes
3 answers
'lite-server' is not recognized as an internal or external command, operable program or batch file
I'm having this error during running the following command on Windows 10.
npm run dev
I'm running lite-server on windows 10, I have tried to solve it using the following commands
npm install -g npm-windows-upgrade
npm install -g…

Amr
- 646
- 1
- 6
- 21
3
votes
1 answer
Content-Security-Policy: Refused to execute inline script on lite server
I am following angular's best practice in order to make PWA. After making production build (ng built --prod --aot). I am also running from dist on localhost: npm run dev ("dev": "lite-server").
When the browser load I get an error in the…

Gal Hadas
- 31
- 2
3
votes
1 answer
Angular Quickstart: Error: spawn EACCES
I cloned Angular quickstart. then I ran npm install, and then npm start. This is what I got.
$ npm start
> angular-quickstart@1.0.0 prestart /home/ecarroll/code/angular/quickstart
> npm run build
> angular-quickstart@1.0.0 build…

Evan Carroll
- 78,363
- 46
- 261
- 468
3
votes
2 answers
Using lite-server for ng2 app development, how to work with php?
I am using lite-server to help with the development of ng2 apps (to which I am new). It refreshes my index.html in the browser whenever changes are made in the project.
But what in the case where I'm dealing with index.php? Before I'd serve it…

Willem van Gerven
- 1,407
- 1
- 17
- 24
3
votes
3 answers
angular2 & lite server dot in url leads to 404 not found
I'm using Angular2 Beta 14 and calling a URL with a "dot" in it leads to a 404 not found error from the lite server which is 2.2.0.
This is the URL I'm…

Cédric Escher
- 41
- 1
- 5
2
votes
0 answers
socket io and lite server issue
i integrated lite-server to my project. One of my page implement socket.io. If any action made of of my browser means same action apply into another browser. For Example, If i scroll or enter some data in to my form means, same data entered into…

Deepak M
- 849
- 8
- 17
2
votes
1 answer
Can't serve assets folder with lite-server
I'm trying to serve an Angular project using lite-server. The server responds with a 404 whenever a file in assets folder is requested. I have created a
bs-config.json and setting the routes option didn't work.
Here is my directory…

Epsilon
- 180
- 1
- 13
2
votes
1 answer
Lite-server npm start wont't work
I'm completely new to Angular and web programming. Tried to clone the quickstart at github/angular and use "npm start" to start lite-server, as I saw in a tutorial [link] but it doesn't work. Should I change the system's variables or something like…

Gabriel Yshay
- 63
- 2
- 5
2
votes
1 answer
create-react-app and lite-server
So I working using ftp and so I can't use their npm start which is only localhost. I'm trying to run create-react-app with lite-server but am unsure of how to configure it so I can access the correct folder.
I've tried soft linking the build folder,…

A. L
- 11,695
- 23
- 85
- 163
2
votes
1 answer
How to configure lite-server port for heroku?
I am trying to deploy nodejs lite-server on Heroku. I am able to run the server fine locally, but fails on deployment with this error:
Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
The basic problem is…

jpat827
- 114
- 2
- 9
2
votes
0 answers
lite-server not working for external get requests
I am running an Angular 2 application using lite-server. When I attempt to make a get request I get a 404 error for external links. I can make a successful get to a file inside the directory.
Response {_body: Object, status: 404, ok: false,…

Malinda Miller
- 181
- 2
- 11
1
vote
1 answer
Denial of service issue in lite-server
I had installed lite-server today and it is showing that lite-server vulnerable to denial of service . Will it affect my system if i use lite-server further.
Is there any solution to fix it?

Farzu
- 65
- 5
1
vote
1 answer
http-proxy-middleware: pathFilter not working as expected
I am trying so setup a npm-based HTML development environment using two servers. One hosts my HTML app of static files (standard way: http://localhost:8080) while the other exposes an application api running…

nurrrb
- 31
- 4