cisagov / crossfeed

External monitoring for organization assets
https://docs.crossfeed.cyber.dhs.gov
Creative Commons Zero v1.0 Universal
356 stars 54 forks source link

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

Open hawkishpolicy opened 4 months ago

hawkishpolicy commented 4 months ago

🐛 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 commented 4 months ago

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