crossfeed icon indicating copy to clipboard operation
crossfeed copied to clipboard

npm ERR! gyp ERR! find Python during NPM Run Start on Apple Silicone based machines

Open hawkishpolicy opened this issue 11 months ago • 1 comments

🐛 Summary

What's wrong? Please be specific.

It appears Apple Silicone based machines cannot find your local PYTHON installation when running APK update && APK upgrade during the Docker build.

To reproduce

Steps to reproduce the behavior:

  1. Complete dev environment for mac-based computers.
  2. Begin initial setup.
  3. Error occurs during NPM START

Expected behavior

What did you expect to happen that didn't? Local environment should build then you can sync and populate the db.

Any helpful log output or screenshots

Paste the results here:


Add any screenshots of the problem here.Screenshot 2024-02-28 at 10 01 31 AM

hawkishpolicy avatar Feb 28 '24 15:02 hawkishpolicy

Adding the following to Line 4 in backend/Dockerfile resolves the "npm ERR! gyp ERR! find Python" error:

&& apk add --no-cache g++ make py3-pip

hawkishpolicy avatar Feb 28 '24 15:02 hawkishpolicy