Can't find Python executable "python3.10.6", you can set the PYTHON env variable with NPM install

Viewed 22

I am trying to npm install on a module but it always errors out. I think this has something to do with npm not finding my python3 executable. I get this error

gyp ERR! stack Error: Can't find Python executable "python3.10.6", you can set the PYTHON env variable.

How do I go about setting the env. I've already updated my .bash_profile to this

export PATH=$PATH:/opt/homebrew/bin/python3

Is there anything that I am missing?

0 Answers
Related