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

nodeenv issue during 2.6.0 installation #4408

Open
0x0abd opened this issue Nov 15, 2024 · 2 comments
Open

nodeenv issue during 2.6.0 installation #4408

0x0abd opened this issue Nov 15, 2024 · 2 comments

Comments

@0x0abd
Copy link

0x0abd commented Nov 15, 2024

Hi folks. Use CF often and never seen such issue before. Any suggestions?
It happens on installing dependencies:

+ nodeenv -p --prebuilt
Traceback (most recent call last):
  File "/home/vagrant/.local/share/virtualenvs/clusterfuzz-mEvB2Z9p/bin/nodeenv", line 8, in <module>
    sys.exit(main())
  File "/home/vagrant/.local/share/virtualenvs/clusterfuzz-mEvB2Z9p/lib/python3.7/site-packages/nodeenv.py", line 918, in main
    opt.node = get_last_stable_node_version()
  File "/home/vagrant/.local/share/virtualenvs/clusterfuzz-mEvB2Z9p/lib/python3.7/site-packages/nodeenv.py", line 872, in get_last_stable_node_version
    return links[-1][0]
IndexError: list index out of range
@reach-satori
Copy link

reach-satori commented Nov 20, 2024

Having the same issue on pre-commit, Probably means it's not a cf issue.

Edit: Seems the culprit was ubuntu (actually, debian) packaging a really old version of nodeenv (0.13.4). I forced it to install a newer version (with some difficulty) and it works fine now. Hope this doesn't bite me later by breaking something in my package manager...
Also, seems that the new version is already updated on debian testing, so this is already due to be fixed.. eventually.

@stuertz
Copy link

stuertz commented Dec 6, 2024

I worked around this using a local pre-commit installation:

$ apt remove pre-commit
$ apt install pipx
$ pipx install pre-commit
$ ~/.local/bin/pre-commit   # or add to your path

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

3 participants