Unknown error from Shopify CLI on M2 Mac

Topic summary

Issue: Developers are encountering errors when running npm run dev for Shopify Checkout UI extensions on Apple Silicon M2 Macs, while Intel Macs work without issues.

First User’s Error:

  • Occurs after following official Shopify tutorial steps
  • Error message appears reversed/garbled: “Unknown system error -86” related to Cloudflare tunnel
  • Command fails: /node_modules/@shopify/plugin-cloudflare/bin/cloudflared tunnel
  • Environment: M2 Mac Mini Pro, Node v18.16.0, Shopify CLI v3.54.1

Second User’s Error:

  • Similar M2 Mac issue with different symptoms
  • Remix build errors: “Could not resolve ‘@remix-run/react’”
  • App installs in Shopify but website never loads
  • Webhook delivery failures (APP_UNINSTALLED)
  • Yarn Plug’n’Play manifest errors about missing package dependencies

Status: Both cases remain unresolved. The issue appears specific to M2 architecture, suggesting potential compatibility problems with either the Shopify CLI tooling, Cloudflare tunnel binary, or dependency resolution on Apple Silicon.

Summarized with AI on November 15. AI used: claude-sonnet-4-5-20250929.

I’m facing a similar issue on M2 Mac.

Everyting is the same as your steps above 1-7.

I choose 8. Java Script

9-12 are the same.

  1. The error message:

… First:

14:59:05 │ webhooks │ Sending APP_UNINSTALLED webhook to app server
14:59:06 │ remix │
14:59:06 │ remix │ :optical_disk: remix dev
14:59:06 │ remix │
14:59:06 │ remix │ info building…
14:59:06 │ remix │ ✘ [ERROR] Could not resolve “@remix-run/react”
14:59:06 │ remix │
14:59:06 │ remix │ app/root.jsx:21:76:
14:59:06 │ remix │ 21 │ …eta, Outlet, Scripts, ScrollRestoration } from “@remix-run/react”;
14:59:06 │ remix │ ╵ ~~~~~~~~~~~~~~~~~~
14:59:06 │ remix │
14:59:06 │ remix │ The Yarn Plug’n’Play manifest forbids importing “@remix-run/react” here because it’s not listed as a dependency of this
package:
14:59:06 │ remix │
14:59:06 │ remix │ ../../.pnp.cjs:38:33:
14:59:06 │ remix │ 38 │ “packageDependencies”: [
14:59:06 │ remix │ ╵ ~~

this continues for some time listing many other instances of @remix errors <<<<<<<

Then we get to this error:

14:59:23 │ webhooks │ App hasn’t started in time, giving up
14:59:23 │ webhooks │ APP_UNINSTALLED webhook delivery failed

and the app installs in shopify but never loads in the website.