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
2 answers

While passing address in nodejs, when to place '/' between directories and when to place '\\' . And why do we place dot(.) before writing addresses

While passing address in nodejs, when to place '/' between directories and when to place '\' . And why do we place dot(.) before writing addresses
0
votes
3 answers

Live server isn't running scripts

I'm on chrome on a Mac, and the index file runs but the script doesn't change anything. I tried just removing paragraphs and that doesn't work either. I tried hard refreshing and running from the Live extension. This is the code from…
Arjun Guru
  • 17
  • 2
0
votes
2 answers

How can I change where `live-server` opens without changing my default browser

I want to change where live-server opens, for example, I like using safari as my default browser, but every time I type live-server in the terminal it will open a window on safari. I know I can type live-server --browser='google chrome' but now I…
Ervin001
  • 25
  • 3
0
votes
1 answer

How can I write a commands in GitBash while npm live-server is working?

I just started working with Git Bash, so I'm trying to do some commands while npm live-server is working, but Git Bash doesn't react at all. I figured out that I can stop the process with "Ctrl+C" command, but is there a opportunity to do commands…
0
votes
1 answer

How to start live-server under node.js on a port other than the default 8080? Also, how do I shut it down once it is running?

On Windows 10, I have installed live-server under node.js with npm install live-server -g in the cmd terminal window on VSCODE. When I start it, with a simple live-server command, it starts but always selects its default port number of 8080. I have…
Richard P
  • 21
  • 5
0
votes
1 answer

npm ERR! code EPERM when "npx live-server"

I am trying to do "npx live-server ." but it failed. It might be the problem of my username(with whitespaces). So that I follow the steps from npm - EPERM mkdir: operation not permitted on Windows. I changed my username in local machine and then run…
Rachael
  • 27
  • 1
0
votes
2 answers

GET request from local server using live-server

I am trying to fetch data from my local server and here is my server and how I handled GET requests: const express = require('express'); const app = express(); const port = 3000; app.use(express.json()); app.listen(port, () => { console.log(`app…
0
votes
1 answer

Not allowed to load local resource in console for using live server at vs studio

I've tried by changing the IP address and also changed the default browser, but still not working.
0
votes
1 answer

Connect Android Virtual Device to Live Server

I'm a novice programmer trying to write a front-end web app in vanilla JS that resizes and looks great & functions correctly on iOS and Android. Specifically, I'm troubleshooting how browsers change focus location when their onscreen keyboards…
0
votes
0 answers

How to deploy node.js (with express.js api's) on real time server

please anyone here who guid me i deployed nodejs on firebase(functions) and netlify(function with serverless-http). the issue is when i save the file to folder then was getting error and i studies from articles that need real time server with cloud…
Saqib
  • 1
  • 1
0
votes
1 answer

npm live server not working on local windows os

I installed live-server globally using this command: npm install -g live-server But when I run live-server public/index.html its not working showing these below erros: internal/modules/cjs/loader.js:905 throw err; ^ Error: Cannot find module…
Shawn
  • 1,232
  • 1
  • 14
  • 44
0
votes
1 answer

Trying to get live previews out of handlebars and mjml when paired together

I've created a file that marries handlebar templating to the MJML framework. My issue is I'm not quite sure how preview the live output as I make changes. I would like to either: • run a script that will fs.writeFile every-time there is a change to…
Jason G
  • 1
  • 1
0
votes
3 answers

why is live-server injecting these javascript codes

I'm trying to create grid layout but live-server is injecting these codes in webpage... //
0
votes
1 answer

live-server won't be installed globally on Mac BigSur

My fresh new Mac Air won't install live-server globally. It keeps throwing the same error after I factory reseted my Mac though. npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! [Error:…
l3lue
  • 531
  • 4
  • 16
0
votes
0 answers

How to install Live Server on Visual Studio?

I have just started my first job today and my new employer uses Visual Studio and not Visual Studio Code which was what I've been learning and using for the last few months. I normally use Live Server or NPM start on VS Code. However my new boss…