Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation failed #8

Open
cwittern opened this issue Nov 24, 2022 · 1 comment
Open

Installation failed #8

cwittern opened this issue Nov 24, 2022 · 1 comment

Comments

@cwittern
Copy link

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?

@cwittern
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant