Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

MacOS Not Running "npm run dev/build"?

A topic by Kalli's Creation Station created 4 days ago Views: 10 Replies: 3
Viewing posts 1 to 3
(1 edit)

EDIT: Forgot to mention that I had this issue both with MacOS Sequoia and MacOS Tahoe, if that helps at all.

I have a 2020 4-thunderbolt-port MacBook Pro and I'm trying to get 11ty/Node.js running on it so I can continue to inch away from windows. When I try to run any of the "npm run (x)" commands, I get the issue below. I'm trying to search for solutions, but keep hitting walls. Can someone smarter than me help me figure this out?

[11ty] Problem writing Eleventy templates: 
[11ty] 1. Having trouble parsing data file ./src/_data/._config.jsonc (via TemplateDataParseError) 
[11ty] 2. Unexpected token '', "Ma"... is not valid JSON while parsing 'Mac OS X            2�' (via JSONError)
Developer

I sadly don't have a mac, which makes debugging issues for it quite difficult - but have you edited the config file (or any other files) at all? My guess from that message is there are single quotes somewhere instead of double quotes, which is not permitted in .json or .jsonc files. If this instead happens on a fresh version of the starter then I've got no clue, but will try to investigate somehow.

I was about to offer to lend you my old MacBook, but it's like 15-20 years old? So it probably wouldn't be of much help haha

It's a completely fresh install of 11ty, Node.js, and Strawberry Starter, yes