1import { throwIf } from '../../sharedF/throwErrorF/throwIfF.mts'3export const rethrowEnoentWithHint = (ee: unknown, cmdA: string[]): never => {4 const err = ee as {code?: string}5 const enoentHint = `${cmdA[0]} not found on PATH; if corepack/pnpm, run: npm i -g corepack (node >=25 no longer bundles corepack)`7 throw ee8}