Registry / http-networking / live-server

live-server

JSON →
library0.9.9jsnpmunverified

Simple development HTTP server with live reload capability. Version 1.2.2 (latest stable; last released in 2019, no longer actively maintained). It automatically reloads the browser upon file changes, supports CSS injection without full reload, and requires no browser plugins. Key differentiators: zero-config setup, CLI-driven, supports SPA fallback, CORS, HTTPS, and custom middleware. Alternative to browsersync or webpack-dev-server but more minimal and focused on static file serving with live reload.

npm install live-server
INSTALL
IMPORT
SIG · LIVE-SERVER
L
live-server
http-networkingjavascriptv0.9.9
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

liveServer
import liveServer from 'live-server'
const { liveServer } = require('live-server')
Default export; CommonJS usage: const liveServer = require('live-server').default or use the CLI directly.

Start live-server with custom port, suppress browser launch, and quiet mode for minimal output.

// Install globally via npm: npm install -g live-server // In your project directory, run: live-server --port=3000 --no-browser --quiet
live-server --version
Debug
Known issues
breakinglive-server v1.2.0 dropped support for Node.js <6.0
fix
Upgrade to Node.js 6+ or use live-server@1.1.1
affects: >=1.2.0
deprecated--ignorePattern option is deprecated in favor of --ignore
fix
Use --ignore instead of --ignorePattern
affects: >=1.1.0
gotchalive-server may not work with certain file watchers on Windows due to path separator issues
fix
Use forward slashes or double-backslashes in watch/ignore paths
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'live-server'
live-server not installed globally or locally
fix
Run `npm install -g live-server`
port already in use
Default port 8080 is occupied
fix
Use `--port=OTHER_PORT` to specify a different port
Failed to load resource: net::ERR_CONNECTION_REFUSED
live-server not running or wrong port
fix
Ensure live-server is running and check the port
Upgrade
Version history
0.9.9latest on npm
Audit
Dependencies
connectrequiredHTTP server framework used internally
serve-staticrequiredStatic file serving middleware
faye-websocketrequiredWebSocket implementation for live reload signaling
opnoptionalOpens browser on startup (CLI usage)
Agent activity
6 hits · last 30 days
node
4
Amazon
1
Resources
live-server — npm install live-server · libregistry