Urgently need to fix an error in unmaintained NPM package, how do I go about this?

I’m assuming there’s probably an easy way to do this but I don’t know how.

Need to apply a small fix to an unmaintained NPM package.

I can edit the file in the node_modules folder. But even if I do that locally in the node_modules folder, it wouldn’t apply on deployment, correct? That’s the problem.

What would be the easiest and quickest way to get this fix applied? Need it as urgently as possible as it’s causing a lot of problems with a live app.

Fork the npm package in github and use your fork in your package.json

1 Like

patch-package npm may help you