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
1
vote
1 answer

new commands are installed but they still don't work

Friends-MacBook-Pro:~ friend$ npm install -g live-server /Users/friend/.npm-global/bin/live-server -> /Users/friend/.npm-global/lib/node_modules/live-server/live-server.js live-server@1.2.0 updated 1 package in 15.078s Friends-MacBook-Pro:~ friend$…
1
vote
0 answers

liveserver websocket connection error

I'm hoping someone else has run accross this issue and can offer some help. I'm worried that I messed up my system because of something I installed or changed, I'm running out of ideas. I've been using Liveserver without issue for awhile but more…
Armando Musto
  • 101
  • 1
  • 3
1
vote
1 answer

How to set up npm live-server for Node.js Ubuntu 14.04

I've just getting into programming and I was told to try and use node.js for JavaScript. I've been watching this tutorial here and he seems to have a tab open called local host where he is allowed to code. I have no idea how to do this. I guess hes…
Alkarin
  • 464
  • 7
  • 20
1
vote
2 answers

What would cause npm live-server to stop detecting file changes?

This was working on my system and now is not. I have live-server version 0.8.1 installed globally. npm install live-server -g But when I start it I don't get the "Live reload enabled." message in the browser console. I've uninstalled it completely…
jkyoutsey
  • 1,969
  • 2
  • 20
  • 31
0
votes
1 answer

npm live-server doesn't refresh the page

live-server package by npm doesn't refresh (reload) the page when I change the CSS files. It detects the changes for CSS files (in terminal) but doesn't refresh (in page). vs code - terminal PS E:\File\004> npx live-server Serving "E:\File\004" at…
0
votes
0 answers

Image does not appear in webpage rendered by live-server

I have a simple html file as follows: Your Image My directory structure looks like this: | test.html | \---images test.png I fire up…
user32882
  • 5,094
  • 5
  • 43
  • 82
0
votes
0 answers

nodejs installation error i cannot understand how to resolve this npm problem

Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows PS C:\Users\User\OneDrive\Desktop\internship\stackoverflow_clone> npx…
0
votes
0 answers

Is there a way to use node modules when running a live server

I have a simple website with multiple pages and I need to use the mysql module for something in it. Whenever I try to run the live-server,and enter the my document that requires the module, I'll get an error message in the console saying that…
negbi2
  • 23
  • 4
0
votes
0 answers

NPM's Live Server not allowing local files and folders in HTML file

I have already asked this on the live-server issue log but haven't received any response so I will try on here as well. I'm trying to a href to a local folder in my HTML file. Typically I would do something like this:
user32882
  • 5,094
  • 5
  • 43
  • 82
0
votes
0 answers

Live Server Command Not Found, after global install

Anytime I try to run "live-server", I'm getting "bash: live-server: command not found" I ran "npm install live-server -g" and "sudo npm install live-server -g" to install globally. It was working fine before and then I started getting this…
0
votes
1 answer

Getting 404 while using json-server

I am learning to use json-server npm package. I am using latest json-server version 0.17.0. I want to get this data from url "http://localhost:3001/getFolderByFolder/14".Where 14 should match with folder_id. { "folder_id": 14, "abstracts": { …
Harsh Shah
  • 150
  • 2
  • 6
0
votes
0 answers

'Cannot get' + path when refreshing through liveserver

I am a JS student and have a project-like problem using page and lit-html. My task is to make a SPA through 'live server' and a server, which is initiated on my pc. I have to install page and lit-html through npm. My issue is that when i start the…
0
votes
0 answers

Admin verification not working in Node JS

Good morning everyone. Please i am writing a code to verify if the user is admin or not before doing any action on the site but i did not work Module code using mongoDB ` const moongose = require("mongoose"); const UserSchema = moongose.Schema ( …
0
votes
0 answers

Error installing npm live-server. How can I set the proxy for VS Code?

I am trying to run the following command in a terminal: npm install live-server -g but I get errno ECONNRESET and a message saying that this is related to network connectivity and most likely due to being behind a proxy or having bad network…
Arg
  • 11
  • 1
0
votes
0 answers

JavaScript modules are not loading

I am trying to import a module to my JavaScript code, which should later run on a WordPress server. Currently i wanted to test it on localhost, but it gives me an error like: The Skript from "http://127.0.0.1:46513/js/main.js" was loaded, despite…