Bug: Missing Apple Silicon (arm64) support for macOS

Open Beginner friendly
#32 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
javascript, node.js

Research direction

Start by locating the macOS architecture branch described in the issue and checking the package's existing architecture-detection tests or entry point. Verify that Apple Silicon reports arm64 while Intel Macs continue to report x64, and confirm the behavior with the relevant test coverage.

Written by the indexing model from the issue text.

Description

The current code hardcodes macOS to x64, which is incorrect for Apple Silicon (M1/M2/M3) Macs.

Current code:
/**

  • All recent versions of Mac OS are 64-bit.
    */
    if (process.platform === 'darwin') {
    return 'x64'
    }

Expected behavior:

  • Return 'arm64' when running on Apple Silicon Mac (process.arch === 'arm64')
  • Return 'x64' for Intel Macs

This package is widely used but hasn't been updated for Apple Silicon, causing wrong architecture detection on modern Macs.

Dominant language
JavaScript
Stars
81
Forks
13
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from feross/arch

All issues in feross/arch

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.