Skip to content

[BUG] Error in node-gyp during yarn install on macOS M1 #241

@try-to-fly

Description

@try-to-fly

Describe the bug
A clear and concise description of what the bug is.

When running docker build on macOS M1, there is an error in node-gyp during the yarn install step. The error is caused by missing dependencies.

To Reproduce
Steps to reproduce the behavior:

  1. Execute docker build command.
  2. Observe the error during the yarn install step.

Expected behavior
A clear and concise description of what you expected to happen.

The yarn install step should complete successfully without any errors.

Screenshots
If applicable, add screenshots to help explain your problem.

Setup

  • OS: macOS M1

Additional context
Add any other context about the problem here.

The issue can be resolved by modifying the Dockerfile as follows:

Change RUN apk add --update libc6-compat to RUN apk add --update libc6-compat python3 make g++.

This modification ensures that the necessary dependencies are installed, allowing node-gyp to run successfully during the yarn install step.

Please note that the issue occurs specifically on macOS M1, and the provided solution addresses the missing dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions