johnpapa / lite-server

Lightweight node server
MIT License
2.32k stars 269 forks source link

throw (err); #142

Open Viv-Galinari opened 6 years ago

Viv-Galinari commented 6 years ago

Hello, I've been experiencing issues starting lite-server v2.3.0 and would love if I could get any help. I get this error message /usr/local/lib/node_modules/lite-server/lib/lite-server.js:33 throw (err);

SyntaxError: /Users/viviangalinari/Desktop/newcopy/mercado/bs-config.json: Unexpected token / in JSON at position 0 at JSON.parse () at Object.Module._extensions..json (module.js:671:27) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at start (/usr/local/lib/node_modules/lite-server/lib/lite-server.js:28:17)

bs-config.json

{ "port": 8005, "server": ["app", ".", "build"] }

Can you please advice? Many thanks