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

"retry page load" in content.js file *** website root ***

I get this message every time my page loads for the first time. It really bugs me and my experience while I try to use console for testing my app. I tried looking for the solutions on google but didn't get them. I don't know if this is some basic…
1
vote
0 answers

index.html page not Loading after json-server --watch pokedb.json --port 5500

After installing and running (json-server --watch pokedb.json --port 5500) Content in my index.html page is not loading. When I open index.html page I get Congrats! You're successfully running JSON Server ✧*。٩(ˊᗜˋ*)و✧*。 Resources /pokemon 1x To…
1
vote
2 answers

Why the live server extension is shown the React folders instead of running the code on the browser

image describe my problem Hi Guys, I had this problem when I launched my React project with Live Server extension. It showed the project's folders instead of running the application. I've removed Live Server extension and reinstalled it but I've…
slimane
  • 11
  • 2
1
vote
1 answer

live-server : The term 'live-server' is not recognized as the name of a cmdlet, function, script file, or operable program

live-server : The term 'live-server' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1…
1
vote
1 answer

Changing default browser for npm live-server

I am using npm live-server package to load my website on changes. However my page is getting opened in Edge even though my system default is Chrome. I tried this command which I saw in npm website. live-server --browser=chrome But it did not…
LoneWolf
  • 119
  • 1
  • 11
1
vote
3 answers

how turn off browser sync in sublime text 3?

I'm using Sublime Text 3 and installed browsersync package for live reloading. When I quit from Sublime and close liveserver app in my browser and try to open new liveserver with react start command I get a message that say: "Something is already…
reza
  • 27
  • 5
1
vote
1 answer

Installing npm live-server on MacOS Catalina

I'm trying to install npm live-server but I am getting the following errors: stl34>>npm install live-server -g npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN…
STL34
  • 315
  • 3
  • 6
  • 15
1
vote
0 answers

Openssl Install and Setup on Ubuntu WSL2 development

I've notice that I've success generating .key and .pem files and running Live Server in VS Code. But, I also noticed that Openssl was already downloaded on my Ubuntu 20.04 WSL2. Originally, the platform Openssl was on was debian-amd64 but after…
1
vote
1 answer

Live changes Wordpress

I'm looking for something like npm live-server, that refreshes my webbrowser every time I make changes to a document. Npm live-server doesn't work with PHP files. Currently using XAMPP Apache/MySQL to run WP locally. Any ideas?
kabooya
  • 447
  • 3
  • 14
1
vote
0 answers

Reading text file locally using javascript is not working without Visual Studio Code

I have an HTML file ( suppose "myHTML.html") and a local text file from which I want to load content and attach it to myHTML. My problem is that whenever I try to use this code: function readTextFile(file) { var rawFile = new…
1
vote
2 answers

how to run live-server inside project using scripts property of package.json file

I have project and i have installed live-server using npm install --save-dev live-server I want to now run live-server using scripts property in package.json file. I know we can run it globally but i want to run live-server within the project…
Smith
  • 1,266
  • 13
  • 31
1
vote
2 answers

Cannot link index.html file to style.css file in another folder

I'm trying to link my style.css file to my index.html file. Both files are located in separate folders. Folder structure: /parent /src/index.html /css/style.css Codes that I have tried using:
Shaze
  • 23
  • 5
1
vote
1 answer

Does the localStorage get cleared when working with npm live-server?

I am currently working on a basic JS application that requires the usage of DOM storage or localStorage. In order to auto-save my changes, I incorporated the npm live-server. After I shut down the live-server, I notice that the localStorage gets…
1
vote
1 answer

React application is redirected to unspecified route

I am a newbie with Front-end development and I am trying to learn ReactJS. In one of my example applications, I am using the "live-server public" command to launch the application on my localhost for development purposes. package.json contents { …
wandermonk
  • 6,856
  • 6
  • 43
  • 93
1
vote
0 answers

Live-server unable to access parent directory

I'm using the live-server package to launch my page, and it seems parent directories cannot be accessed (for example, '../public/file.txt'). Placing this file into working directory, live-server will be able to load it. Is there a way to allow…
Andrew
  • 41
  • 5