Open Justiniscoding opened 2 years ago
I'm getting the same issue on macOS Monterey 12.3.1
If someone is still looking for a solution, for me the problem was solved by installing python 2.7. Since apple does not support python 2.7 anymore you need to follow this tutorial: https://www.alfredapp.com/help/kb/python-2-monterey/
That solution did not work for me, I already have python 2.7 installed
I tried every way i've found and neither of them worked so only made one-line solution for M1 (sudo ln -s /opt/homebrew/bin/python3 /opt/homebrew/bin/python
) and Intel (sudo ln -s /usr/local/bin/python3 /usr/local/bin/python
) Mac machines
I've just had and solved some troubles with installation on Windows that failed differently, but in a similar spot.
The culprit turned out to be the version of node-gyp(7.1.2) that 'gl' (as a dependency of gpu.js) uses when installing. It wasnt liking/finding my VSCode install.
https://github.com/gpujs/gpu.js/issues/770
Different platforms / different errors, but I noticed Justin's log only references Python 3.9 so potentially a similar case where node-gyp@7.1.2 struggles with newer Python.
What is wrong?
When I install GPU.js in nodejs 15.14.0 I get the following error message:
Where does it happen?
When installing GPU.js with
npm i gpu.js
How do we replicate the issue?
Install GPU.js with
npm i gpu.js
with node version 15.14.0 on macOS 10.11.6 El CapitanHow important is this (1-5)?
5
Expected behavior (i.e. solution)
GPU.js should install without errors and I should be able to use it in my nodejs project.