I can't seem to run npm run dev
or npm start
on my macOS machine.
I get a bus error message every time I try to do so, and the output is usually something like this:
klvn git:(main) ✗ npm run dev
> klvn@0.1.0 dev
> next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
[1] 1736 bus error npm run dev
➜ klvn git:(main) ✗
I've tried removing the /node_modules, package-lock.json and /.next folders but that doesn't seem to help. I'm running macOS Monterey.
I had this same error with a project I cloned from a repo.
My solution was to delete the local version of it and then clone it again. Then run an npm install
and then the npm run dev
script again.