live-server icon indicating copy to clipboard operation
live-server copied to clipboard

undefined:1

Open dev-codo opened this issue 6 years ago • 1 comments

I got to ran once successfully with the command live-server and for the subsequent ones it started to throws this error:

undefined:1



SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Object.<anonymous> (/usr/local/lib/node_modules/live-server/live-server.js:21:20)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:238:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)
  • Command line used for launching live-server:
  • OS: macOS High Sierra (10.13.5)
  • Browser: Chrome (67.0.3396.79)
  • Node.js version: v10.4.0
  • live-server version: [through npm]

dev-codo avatar Jun 15 '18 04:06 dev-codo

Same issue did you figure out how to fix it

bajajrajesh15 avatar Jun 04 '20 15:06 bajajrajesh15