Npm run dev doesn't work

Hey, I’m trying to create a headless WP installation with local but after I set up everything I’m getting the following error:

ready - started server on 0.0.0.0:10312, url: http://localhost:10312
info  - Loaded env from /Users/manuel/Local Sites/eintestnoch/app-node/.env.local

> next-headless-getting-started@0.1.0 dev
> next dev -p $PORT

ready - started server on 0.0.0.0:10312, url: http://localhost:10312
info  - Loaded env from /Users/manuel/Local Sites/eintestnoch/app-node/.env.local
info  - Attempted to load @next/swc-darwin-x64, but an error occurred: dlopen(/Users/manuel/Local Sites/eintestnoch/app-node/node_modules/@next/swc-darwin-x64/next-swc.darwin-x64.node, 1): no suitable image found.  Did find:
        /Users/manuel/Local Sites/eintestnoch/app-node/node_modules/@next/swc-darwin-x64/next-swc.darwin-x64.node: code signature in (/Users/manuel/Local Sites/eintestnoch/app-node/node_modules/@next/swc-darwin-x64/next-swc.darwin-x64.node) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
error - Failed to load SWC binary for darwin/x64, see more info here: https://nextjs.org/docs/messages/failed-loading-swc

Any ideas what I can do to fix this?

Thank you
Manuel

Hey @wpcologne – Welcome to the Local Community Forums!

That error mentions a url for possibly fixing things. Can you try the steps outlined in that doc:

Hey Ben,

thank you so much! Creating the .babelrc file solved it!

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.