Public bug reported:

$ nodeenv -l
/usr/bin/nodeenv:6: DeprecationWarning: pkg_resources is deprecated as an API. 
See https://setuptools.pypa.io/en/latest/pkg_resources.html
  from pkg_resources import load_entry_point
Traceback (most recent call last):
  File "/usr/bin/nodeenv", line 11, in <module>
    load_entry_point('nodeenv==0.13.4', 'console_scripts', 'nodeenv')()
  File "/usr/lib/python3/dist-packages/nodeenv.py", line 881, in main
    opt.node = get_last_stable_node_version()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/nodeenv.py", line 835, in 
get_last_stable_node_version
    return links[-1][0]
           ~~~~~^^^^
IndexError: list index out of range

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: nodeenv 0.13.4-1.1
Uname: Linux 6.6.87.1-microsoft-standard-WSL2 x86_64
ApportVersion: 2.28.1-0ubuntu3.7
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Tue Jul  1 04:18:40 2025
PackageArchitecture: all
ProcEnviron:
 LANG=C.UTF-8
 PATH=(custom, user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: nodeenv
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: nodeenv (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2115702

Title:
  nodeeenv crashes on nodeenv -l

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nodeenv/+bug/2115702/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to