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
Can't get NPM to install modules because of missing obsolete Python2 #5928
Comments
Hi @JAyenGreen - Python2 has long been obsolete and removed from Debian and Ubuntu. You'll want to figure out how to use npm packages that don't require it. If you actually need it, you can use
If you want the
in DDEV v1.22.7. However, that won't be possible in upcoming v1.23.0, which is based on Debian 12 Bookworm, where they have dropped even this. The internet does have lots of suggestions for you but it's not something you're going to like. |
Thanks, @rfay. Ugh. Of course...it's Monday. |
Sounds like you're on the path now, closing, happy to continue the conversation here or elsewhere. |
BTW, not sure what |
Yup, as you typed it! |
Is there an existing issue for this?
Output of
ddev debug test
Expand `ddev debug test` diagnostic information
Expected Behavior
I expect
ddev npm install
to do a clean install.
Actual Behavior
gyp verb check python checking for Python executable "python2" in the PATH gyp verb
whichfailed Error: not found: python2 ... gyp verb check python checking for Python executable "python" in the PATH gyp verb
whichsucceeded python /usr/bin/python
Steps To Reproduce
No response
Anything else?
Tried with versions 18.13.0 (which our FE devs use) and 14.8.0 (which our BE devs use) of node.
From inside project, python2, python3 and python commands all run python, 2.7.18, 3.10.12 and 3.10.12, respectively.
The text was updated successfully, but these errors were encountered: