Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

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

Open try-to-fly opened this issue 2 years ago • 1 comments

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.

try-to-fly avatar Jun 02 '23 05:06 try-to-fly

Thanks for the bug! Will make those update!

HenryHengZJ avatar Jun 02 '23 19:06 HenryHengZJ

Issue should be resolved as #258 merged

HenryHengZJ avatar Jun 06 '23 16:06 HenryHengZJ