TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Patch Node Modules Instantly

2 pointsby mfbx9da4over 2 years ago

1 comment

salawatover 2 years ago
Note:<p>I just recently got bit by degenerate behavior of this package in yarn 1.x, which I didn&#x27;t have the option to upgrade due to usecase.<p>I ended up just settling on using patch from GNU coreutils to apply the diffs.<p>The core of the degenerate behavior was that yarn 1.x does not have an option to not run builds after installs invocations, and if you&#x27;re trying to uninstall postinstall or remove patch-package from a dist, a yarn remove will remove the package from node_modules, but will not deregister the lifecycle hook of the running NodeJS session, leading to chicken egg frustration.<p>Just a cautionary tale. Sometimes, the old(er) stuff just werkz.<p>P.S. I&#x27;m an old grognard who thinks Node is specifically out to assassinate their sanity. YMMV.