Questions tagged [npm-live-server]

NPM live-server is a software module for Node.js that allows users to create and manage a simple HTTP server that includes live-reloading capabilities.

NPM live-server is a package within npm.js (the package manager for Node.js JavaScript environments) for HTTP servers that features live-reload capabilities.

105 questions
0
votes
1 answer

npm live-server this app can't run on your pc

I'm learning react, and Installed live-server via npm globally. Each time i try to serve the directory (live-server public), i get a windows error saying - "this app can't run on your pc" I am using windows 8.1
David Essien
  • 1,463
  • 4
  • 22
  • 36
0
votes
1 answer

React dom - rendering from src/app.js to public/scripts/app.js

I'm starting to learn React DOM. I'have installed all components correctly few days ago and my firt app used to work correctly. Now I have a problem with render from src/app.js to public/scripts/app.js in my app. When I modify src/app.js - there is…
0
votes
1 answer

npm live-server not running on mobile

Everything runs correctly when I start the npm live-server from my laptop, but when I type the address on the iPhone's browser 127.0.0.1:8080 it says the address can't be found. I remember before that when running the live server from the terminal…
0
votes
1 answer

npm live-server not reading php files

I'm very new to Git, and I just installed live server and I run it via terminal. I noticed that it only runs .html files rather than .php files. It basically skips reading them so instead of running index.php, it gives me a directory listing. If I…
thraxxdv
  • 3
  • 3
0
votes
1 answer

live reload not working for live-server@ 0.9.2

For my web application I am using "live-server": "^0.9.2", here's the package json file, { "name": "demoapp", "version": "1.0.0", "description": "This project contains the samples of the book", "scripts": { "live": "live-server", …
user584018
  • 10,186
  • 15
  • 74
  • 160
0
votes
2 answers

angularjs POST 405 method not allowed

I have an angularjs project that contains an oauth to github. I use the satellizer plugin to deal with the oauth protocol. Every time I try to connect I get this error: Here is my route config (it's ES6 using Babel) : export default function…
Giu
  • 1,832
  • 2
  • 16
  • 31
0
votes
2 answers

Getting an error when I run NPM live-server

Here's the server I'm using, https://www.npmjs.com/package/live-server. However, when I try to use ~/.live-server.json as the configuration file, I always fail... Here's what I have in the file, and it's very simple. { port: "8001" } Then I…
Bomin
  • 1,619
  • 5
  • 24
  • 39
-1
votes
1 answer

live-server doesn't cache JavaScript code while using live server

My project is React.js/Babel.js based. I have no errors with my code which I'm certain of, but the live server isn't responding to changes made via JavaScript. I made changes to the HTML file, changes take place without any errors. When I make…
-1
votes
1 answer

'..' is not recognized as an internal or external command, operable program or batch file. (lite-server)

I am following this truffle pet-shop tutorial When i try npm run dev i get the following error message: > pet-shop@1.0.0 dev > ../../../Desktop/BlockchainTechnology/pet-shop-tutorial/node_modules/.bin/lite-server '..' is not recognized as an…
Jesper Hustad
  • 172
  • 2
  • 5
-1
votes
1 answer

How can I set response headers in live-server to avoid CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource?

I am creating my personal website, and I am using live-server, but I get the CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource error. So I review the documentation, and they recommend adding --cors flag to…
Diesan Romero
  • 1,292
  • 4
  • 20
  • 45
-1
votes
2 answers

Issue with main.scss updating automatically

Here is my main.scss file with all my imports... @import "abstracts/functions"; @import "abstracts/mixins"; @import "abstracts/variables"; @import "base/animations"; @import "base/base"; @import "base/typography"; @import "base/utilities"; @import…
-1
votes
2 answers

How come I can't open my .html with Live Server in VSCode?

I installed Live Server in VSCode for the first time and am trying to open an .html file with Live Server. I'm following the simple instructions provided here on the official installation page, but to no avail. I right-click my file in the Explorer…
Giao Tran
  • 135
  • 1
  • 2
  • 10
-1
votes
2 answers

How to kill the live-server from windows machine using sublime text 3

So I am building a react app using npm, the problem is whenever I start the live-server to update the website automatically for any changes I make in the code, the terminal just freezes and it does not let me type anything. I am opening the terminal…
jsLearner
  • 159
  • 3
  • 11
-1
votes
2 answers

Using LiveServer on port 8080

I'm currently working through the Angular 2 QuickStart instructions at https://angular.io/docs/js/latest/quickstart.html and have run into a problem running LiveServer. When I start LiveServer as per the instructions, I get an error in my…
Leo Farmer
  • 7,730
  • 5
  • 31
  • 47
-2
votes
1 answer

Starting up a Live Server via live-server command not working: env: node\r: No such folder or file

I ran command from my terminal "live-server public", since my public folder within my project root folder contains index.html, which is the entry point for my web application. However, I am getting the error "env: node\r: No such file or directory".…
1 2 3 4 5 6
7