Skip to content

python not found - had to configure it manually in npmΒ #2654

@mcollina

Description

@mcollina

On Mac OS X (Intel) v12.3.1 to make compilation of native modules work, I had to add the following to my .npmrc:

python=/usr/local/bin/python3

It took me quite a bit of time to find this trick.

This is with:

  • node.js v16.14.0
  • npm v8.5.5

Why is this needed?
Why can't node-gyp figure it out to try python3 instead?
Should we document this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions