I use corepack to manage all my node package managers, including NPM. This causes some issues when tools are hardcoded to run scripts with NPM, because I get a UsageError: This project is configured to use <packageManager> because /path/to/package.json has a "packageManager" field error.
So I made a thing to fix it, without allowing NPM to do non-script-running things. Just install npm-run-shim globally with your node package manager of choice and make sure the folder it installs to is before the folder corepack installs to in your path :P
Also, if you want, you can tell it to run scripts with something else (perhaps bun?) by setting the $NPM_RUN_SHIM_RUNNER environment variable.
