Respect engineStrict
setting in package.json
to fix Node.js version
#14030
Labels
enhancement
New feature or request
What is the problem this feature would solve?
Currently, we have specified Node.js 20 in the
engines
field in ourpackage.json
. But in practice, you don't notice at all if a different Node.js version is active on a system duringbun run
andbunx
commands (which default to use Node.js w/o--bun
). This regularly causes issues (a) across our team and (b) with the CI.What is the feature you are proposing to solve the problem?
There already is the
engineStrict
boolean flag specified forpackage.json
's. I would suggestbun (install|run|exec|…)
to follow this rule and fail ifnode
is running on a different version than specified.What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: