npx patch-package

Category: Node.js & npm/yarn

npx patch-package

Apply local patches to node_modules packages and persist them across installs

Applies patches you've made to files inside node_modules and re-applies them after every 'npm install' — a sanctioned way to fix bugs in third-party packages.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.