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 Nov 21, 2025 Views: 225 Replies: 6
Viewing posts 1 to 5
(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

Just chiming in (maybe unhelpfully) that I got it up and running on my 2021 MacBook Pro which runs on Sonoma. I hope you were able to figure it out!

I have not... I'll update my MacBook and try again

(1 edit)

Hey y'all! Just wanted to post a quick update that it seems like there was an update between my original post and now that fixed whatever was causing NPM to not work properly (I'm on MacOS Tahoe 26.3.1a)! It takes a while for it to get everything going, but it works, and that's what's most important!


EDIT: NPM commands install, run dev, and run build work! Trying to update NPM via the terminal doesn't work because of how MacOS handles permissions (it's very weird)