-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Not sure if it's just my system but if I try to run pre-commit, I'm getting an error with nodeenv which is coming from prettier.
I have not been able to track down the specific cause.
An unexpected error has occurred: CalledProcessError: command: ('/usr/bin/python3', '-mnodeenv', '--prebuilt', '--clean-src', '/home/--/.cache/pre-commit/repo0o04rml7/node_env-default')
return code: 1
stdout: (none)
stderr:
/usr/lib/python3/dist-packages/nodeenv.py:24: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
import pipes
/usr/lib/python3/dist-packages/nodeenv.py:37: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import parse_version
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/lib/python3/dist-packages/nodeenv.py", line 1042, in <module>
main()
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
work around was
SKIP=prettier pre-commit run |git commit ....
but would love to actually fix
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request