Open BoscoDomingo opened 4 months ago
PR welcome - tho I don't know if there is way we could detect that
PR welcome - tho I don't know if there is way we could detect that
@antfu I would assume that first checking if Node >= 22. After that, maybe ask users if they prefer to use whatever package manager they use, or node --run. If they use npm, I would turn it on by default
Clear and concise description of the problem
Node 22 introduced the
--run
flag, which allows it to run scripts in the same way npm, pnpm, yarn and bun do. It'd be nice to support this, since it seems to be significantly fasterSuggested solution
Add
node --run
to the list of options that thenr
command can useAlternative
No response
Additional context
No response
Validations