-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Runtime information about libc version and type #39877
Comments
FWIW we do attempt to determine glibc versions (compile and runtime versions) for inclusion in a diagnostics report Lines 363 to 376 in 99a3d55
|
@Brooooooklyn this seems like a small addition and reasonable to me at first glance. The best way to move forward is likely to submit a PR. Is that something you can do? |
@mhdawson I will try it |
We're experiencing the optionalDependenices issue with Next.js and I think this @Brooooooklyn Did you start working on this yet? I can try an help out if needed. The npm team (@MylesBorins) is also interested in this solution 🙂 |
@styfle not yet, I'm busy on the |
I created PR #41338 but it needs some work. I'm unsure if this information is sufficient to solve the related npm install issue since you would likely need to detect musl too. |
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment. For more information on how the project manages feature requests, please consult the feature request management document. |
Based on #41338 this seems to be resolved. I'm proceeding to close this, but feel free to re-open if needed |
Is your feature request related to a problem? Please describe.
I need to dectect the
libc
version and type on Linux systems to determined which native addon I need to load.The most common ways in Node.js to do such things is using the
detect-libc
package, which is actully invoke shell scripts and try to read messages in the stdout, not elegant at all.The other way is using
try ... catch
on Linux:not elegant either and more complicated.
Describe the solution you'd like
I want get
libc
information onprocess.versions
directly, like:For the other systems don't need to consider about libc problem, just leave the fields as null.
The text was updated successfully, but these errors were encountered: