-
Notifications
You must be signed in to change notification settings - Fork 10
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
BUG: pre-commit/repoxoi92sgz/node_env-default/bin/node: libc.so.6: version `GLIBC_2.28' not found #143
Comments
I deleted |
Hi @vitkl, thanks for reporting. Yes, I think we really would like to have prettier -- it takes care of formatting all non-Python files. |
Do you mean installed via The latter would complicate use - we either need to ask our central IT to keep installing the latest versions or use a singularity image all the time (which requires several steps and devices to build). |
Both conda and system package manager should work. Personally, I work with the conda version. |
How can my last error be explained?
Would be good to see more complete installation instructions in the readme. |
Well, in theory no installation instructions should be necessary as pre-commit takes care of that. It just installs a node version that is incompatible with your system. I don't know why you would end up with |
FWIW, I just found out that it's possible to override the node version using pre-commit: Could you please try setting the node version for prettier to an older version of node to find out if it works on your system? e.g. - repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
hooks:
- id: prettier
language_version: 16.19.0 |
This works, thank you!
|
Perfect! May I ask you to try which is the most recent version of node that still works on your system? |
Do you mean to keep increasing |
exactly! Probably it's enough to just specify major numbers, i.e. |
|
👍 Thanks! |
Just one more question: what operating system are you on? |
The system is Actually, I have a problem after using version Any suggestions about what happened? |
Ok, then it is as discussed in #144: Ubuntu 18.04 hits end of support this April and is indeed incompatible with the latest node version.
No idea, sorry. |
Maybe this error
is a result of these files being committed before prettier was run for the first time. It is possible to apply prettier to all files? E.g. like |
I found a hack to fix this - just commit changes via a PR such that the workflow is run to automatically modify the files. |
I fail to initialise a repo from this template because pre-commit fails on
git commit ...
.The solution presented here jupyterlab/jupyterlab#12675 is adding
to the top of
.pre-commit-config.yaml
.However, that solution also fails with:
I tried to solve this by installing
conda install -c conda-forge nodejs
- however, this also fails:Is
prettier
really necessary?The text was updated successfully, but these errors were encountered: