Skip to content

flutter-skill crashes on Apple Silicon macOS with spawn Unknown system error -8 #49

Description

@macdipu

Environment

  • macOS Apple Silicon (arm64)
  • Node.js: v20.20.2
  • Dart SDK: 3.11.4
  • npm install method:
npm install -g flutter-skill

Problem

Running:

flutter-skill --help

crashes immediately with:

Error: spawn Unknown system error -8
    at ChildProcess.spawn (node:internal/child_process:420:11)
    at spawn (node:child_process:762:9)
    at runNativeBinary (.../flutter-skill/bin/cli.js:125:18)

Investigation

Architecture checks:

uname -m
# arm64

node -p process.arch
# arm64

dart --version
# Dart SDK version: 3.11.4 on "macos_arm64"

The package contains only Dart source files and no valid native executable:

dart/bin/server.dart

The launcher in bin/cli.js attempts to call:

spawn(binaryPath, args)

inside runNativeBinary() before fallback logic executes.

On Apple Silicon this throws immediately with:

Unknown system error -8

which prevents fallback to runWithDart().


Additional Issue

Trying to run the Dart server manually also fails:

dart run bin/server.dart

Error:

Error: Couldn't resolve the package 'flutter_skill'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions