{"id":18502,"library":"live-server","title":"live-server","description":"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.","status":"maintenance","version":"1.2.2","language":"javascript","source_language":"en","source_url":"https://github.com/tapio/live-server","tags":["javascript","front-end","development","tool","server","http","cli"],"install":[{"cmd":"npm install live-server","lang":"bash","label":"npm"},{"cmd":"yarn add live-server","lang":"bash","label":"yarn"},{"cmd":"pnpm add live-server","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"HTTP server framework used internally","package":"connect","optional":false},{"reason":"Static file serving middleware","package":"serve-static","optional":false},{"reason":"WebSocket implementation for live reload signaling","package":"faye-websocket","optional":false},{"reason":"Opens browser on startup (CLI usage)","package":"opn","optional":true}],"imports":[{"note":"Default export; CommonJS usage: const liveServer = require('live-server').default or use the CLI directly.","wrong":"const { liveServer } = require('live-server')","symbol":"liveServer","correct":"import liveServer from 'live-server'"}],"quickstart":{"code":"// Install globally via npm: npm install -g live-server\n// In your project directory, run:\nlive-server --port=3000 --no-browser --quiet","lang":"javascript","description":"Start live-server with custom port, suppress browser launch, and quiet mode for minimal output."},"warnings":[{"fix":"Upgrade to Node.js 6+ or use live-server@1.1.1","message":"live-server v1.2.0 dropped support for Node.js <6.0","severity":"breaking","affected_versions":">=1.2.0"},{"fix":"Use --ignore instead of --ignorePattern","message":"--ignorePattern option is deprecated in favor of --ignore","severity":"deprecated","affected_versions":">=1.1.0"},{"fix":"Use forward slashes or double-backslashes in watch/ignore paths","message":"live-server may not work with certain file watchers on Windows due to path separator issues","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run `npm install -g live-server`","cause":"live-server not installed globally or locally","error":"Error: Cannot find module 'live-server'"},{"fix":"Use `--port=OTHER_PORT` to specify a different port","cause":"Default port 8080 is occupied","error":"port already in use"},{"fix":"Ensure live-server is running and check the port","cause":"live-server not running or wrong port","error":"Failed to load resource: net::ERR_CONNECTION_REFUSED"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}