Description
on windows, running the db.json file from the readme.md. Trying to run json-server and just get unexpected identifier errors.
I made sure that the file was utf-8 as that seemed to be feedback from someone else in a previous issue but that didnt sort it.
Any ideas what's going on here?
> json-server --watch db.json SyntaxError: Unexpected identifier at Object.exports.createScript (vm.js:24:10) at REPLServer.defaultEval (repl.js:235:25) at bound (domain.js:287:14) at REPLServer.runBound [as eval] (domain.js:300:12) at REPLServer.<anonymous> (repl.js:431:12) at emitOne (events.js:82:20) at REPLServer.emit (events.js:169:7) at REPLServer.Interface._onLine (readline.js:211:10) at REPLServer.Interface._line (readline.js:550:8) at REPLServer.Interface._ttyWrite (readline.js:827:14)
db.json file:
{ "posts": [ { "id": 1, "title": "json-server", "author": "typicode" } ], "comments": [ { "id": 1, "body": "some comment", "postId": 1 } ], "profile": { "name": "typicode" } }