Closed SammyO closed 4 years ago
Might be Python version issue? I'm running Python 3.6.5.
Yeah, you're running an older version of node-gyp
that doesn't support Python 3. If you're able, try upgrading npm (npm install -g npm
) to at least v6.13.7.
Alternatively, if you have Python 2 installed somewhere, you can give npm the path to that binary and it should start building. I'm not too familiar with mac, but from a quick search it seems there might be a system-managed binary at /usr/bin/python
ā can you try running /usr/bin/python -V
to see if it's a valid Python 2 binary? If so, you can set the path like this:
npm config set python /usr/bin/python
You're right. I managed to resolve it by installing Python 2.7 (using pyenv
).
Great to hear, let me know if you have any other issues š
Trying to install on my Mac (10.14.6), but getting error: