Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

npm-run-shim

easrng9MIT1.0.6

allow npm run-script in projects that use a different packageManager

npm run, npm, pnpm, yarn, corepack

readme

npm-run-shim

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. Installing this package fixes the problem¹, without allowing NPM to do non-script-running things. You can also change what script runner is used by setting $NPM_RUN_SHIM_RUNNER in your environment.

¹ as long as your package manager's global bin folder is in $PATH before the corepack bin folder