I tried to follow the installation instructions on my Ubuntu 20.04 system, which has python installed via pyenv.
The relevant part of the error log is as follows
npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! gyp verb `which` succeeded python2 /home/chris/.pyenv/shims/python2
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: /home/chris/.pyenv/shims/python2 -c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack pyenv: python2: command not found
npm ERR! gyp ERR! stack
npm ERR! gyp ERR! stack The `python2' command exists in these Python versions:
npm ERR! gyp ERR! stack 2.7.17
...
Of course a dependency on python2 does not sound nice to begin with, but since I am using it still a lot, I have no qualms about that. What should I do to tell npm where to find my python?
I tried to follow the installation instructions on my Ubuntu 20.04 system, which has python installed via pyenv.
The relevant part of the error log is as follows
Of course a dependency on python2 does not sound nice to begin with, but since I am using it still a lot, I have no qualms about that. What should I do to tell npm where to find my python?