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
0
votes
1 answer
Lite-server show blank screen in angular app
I want to use lite-server for testing my angular app in mobile view.
This is my package json:
{
"name": "myapp",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch…

Peter Shneider
- 123
- 1
- 10
0
votes
1 answer
lite-server not launching | node module permissions?
When I try to start lite-server, I get this error. I'm not sure what other information is needed, but I'll be happy to provide more if necessary.
I am running this on Manjaro Linux, not sure if that has anything to do with it.
> nucampsite@1.0.0…

Matt
- 21
- 4
0
votes
1 answer
Why am I getting 404 GET /index.html when I use lite-server in my Angular project?
I have an Angular project which I cannot deploy so I decided to use lite-server to see what's wrong. But when I run lite-server in my terminal, I get the following errors:
[Browsersync] Serving files from: ./
[Browsersync] Watching files...
21.09.26…

Newsha Nik
- 806
- 2
- 12
- 29
0
votes
0 answers
Lite-server could not start for reason "Unexpected token ..."
I am new to typescript and follow the tutorial to use lite-server, but when I use npm start I get the following error:
D:\web_demo\tsTest\node_modules\micromatch\index.js:44
let isMatch = picomatch(String(patterns[i]), { ...options, onResult…

Ryan
- 19,118
- 10
- 37
- 53
0
votes
0 answers
Truffle Drizzle Tutorial fails on last step 'npm run dev'
I am on windows 10, using vscode. Basically finished the petshop tutorial with no issues or problems using truffle.
when I enter the command npm run dev it fails as shown below.
PS Y:\code\petshop> npm run dev
> pet-shop@1.0.0 dev
>…

phillip shields
- 37
- 5
0
votes
1 answer
Recommended Electron App configuration - iframe? webview? local server? other?
I am building my first electron desktop app. It creates a formatted document/book from spreadsheet data to either be printed or made into a PDF. I am trying to figure out the best way to prevent performance loss from reflow/repaint when having a…

jomortal
- 21
- 4
0
votes
1 answer
How to turn off Lite-server
I'm using lite-server ('https://www.npmjs.com/package/lite-server').
After hitting npm start it hosts on localhost:/3000 .
If I close CMD where I typed in NPM start it turns off the server.
Is there a way to turn it off through cmd? Some short-cut…

Faris Kapo
- 346
- 9
- 30
0
votes
0 answers
How can I fix npm errors and warnings? Does 'npm audit fix' work?
How can I fix npm errors and warnings? It worked before... But now it doesn't work... Also does npm audit fix work?
npm -v
6.14.6 node -v v12.18.4
npm notice created a lockfile as package-lock.json. You should commit
this file. npm WARN…
0
votes
1 answer
how to solve npm error “npm ERR! errno 9009” at dev: `lite-server`
So, I was starting to learn bootstrap and for that I had to install and configure node & npm to run lite-server I've already created my .json file and installed lite server using command "npm install lite-server --save-dev" then after adding "dev":…

Shaheer.K
- 21
- 7
0
votes
0 answers
FontAwesome is blocking my page from loading
I linked my fontAwesome to the head of my index.html properly. But whenever I try rending the page with lite Server, the page keeps loading without showing anything including my html text! the page keeps loading saying waiting for font awesome.
is…

franklin forson
- 23
- 4
0
votes
1 answer
Deploying Angular app to server with changed baseHref missing files
This question is related to my previous post and discussion I had in the comments.
Angular base href not showing up in URL
TLDR is that my application runs normal when I test it localy e.g. correctly routes between localhost:4200/page1 and /page2…

Schallabajzer
- 121
- 1
- 2
- 7
0
votes
1 answer
Angular CLI - ng serve with seperate backend server
I am in the process of converting a custom webpack built angular application to the Angular CLI and everything seems to be working well except I can't figure out how to get ng serve to work. I have about 11 applications within this Angular…

Justin
- 683
- 8
- 24
0
votes
1 answer
Angular2 Web-Page Not Loading
My Angular2 web-page is no longer loading. Everything was working fine and then after I saved some code the page would not load.
I've tried to check for errors within my code and fixed them all, but my web-page will still not…

Bulzary
- 1
0
votes
1 answer
Where can I find console log of lite-server?
I’m now developing a simple Dapp using Truffle.
When command npm run dev is submitted, the console mode changes as below.
Therefore, even though “console.log(message for debug here)” is written in JavaScript file of Dapp, I cannot receive the log…

user46556
- 1
- 1
0
votes
1 answer
Angular 6 - Running dist folder with lite-server on IE11 doesn't work
I am trying to run my Angular 6 dist folder on IE. It works perfectly in Chrome. IE shows title in the tab correctly but nothing on the page. I have the classlist.js and web-animations-js polyfills installed. The project works in dev but not prod. I…

Jeoay
- 1
- 1