You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
OK, so to work around this, I made python2 sticky in the terminal, and ran npm i
again. This time, it did proceed a bit further, but in the end failed again, here is the tail:
npm ERR! gyp ERR! node -v v16.14.2
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1
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?
The text was updated successfully, but these errors were encountered: