Bumped into the same issue recently. Turns out, that Mac had created '.DS_Store ' file inside client's scripts folder and /meta/js.js is looping through all files upon launching the nodebb server. Including .DS_Store. And that causes [meta/js] Could not compile client-side scripts! Unexpected character.
Solution was: search for and remove all '.DS_Store' files everywhere from /public folder.