You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
show recommended node version even if engines define something else #3167
How do you want npmx to detect the recommended version?
If there was some standard "recommendedEngines" field, we could display it
Yeah, that could be good, but it doesn't exists, then, manually code checking if a node built-in function has ranges (if you see cli.ts I explicitely throw an error with the ranges, but that's up to the developer unfortunately), any ideas, maybe just check built-in node functions used in the package
How do you want npmx to detect the recommended version?
If there was some standard "recommendedEngines" field, we could display it
Yeah, that could be good, but it doesn't exists, then, manually code checking if a node built-in function has ranges (if you see cli.ts I explicitely throw an error with the ranges, but that's up to the developer unfortunately), any ideas, maybe just check built-in node functions used in the package
The fact that you're throwing an error suggests that in fact it's not recommended, it's required - in which case engines is the correct field?
Activity
ghostdevv commentedon Aug 11, 2026
We do show it on the sidebar!
lorypelli commentedon Aug 12, 2026
Nope, that's the version from the engines field, but cli.ts in this case doesn't support it
lorypelli commentedon Aug 12, 2026
Check the code of cli.ts
gameroman commentedon Aug 12, 2026
How do you want npmx to detect the recommended version?
If there was some standard
"recommendedEngines"field, we could display itlorypelli commentedon Aug 12, 2026
Yeah, that could be good, but it doesn't exists, then, manually code checking if a node built-in function has ranges (if you see cli.ts I explicitely throw an error with the ranges, but that's up to the developer unfortunately), any ideas, maybe just check built-in node functions used in the package
gameroman commentedon Aug 12, 2026
That'd be difficult probably since it'd require checking every single file which would not be very efficient
I think standardizing something like
"recommendedEngines"would be simplerI've added
needs discussionso lets see what others thinkghostdevv commentedon Aug 12, 2026
The fact that you're throwing an error suggests that in fact it's not recommended, it's required - in which case
enginesis the correct field?