Lea Verou on Nostr: npm link is a textbook example of a great idea rendered near-unusable by poor design ...
npm link is a textbook example of a great idea rendered near-unusable by poor design (or implementation? Hard to tell).
The purpose is clear: Link to certain deps locally, so you can modularize without having to get every change through npm or make edits.
But it silently stops working and modules fall back to installed versions seemingly at random.
I have yet to build a consistent mental model about when exactly this happens. At this point, I can't even confidently assert it's deterministic!
Published at
2024-08-03 19:20:17Event JSON
{
"id": "fc5d2cce64fdd0d209d0c65d3c5822ad4fef22d64e72110f4cf31aa470786d5c",
"pubkey": "effca4793b2710c9d391f2af243fc7228b446437e13c605b2ee931d03319336f",
"created_at": 1722712817,
"kind": 1,
"tags": [
[
"proxy",
"https://front-end.social/@leaverou/112899707220324213",
"web"
],
[
"proxy",
"https://front-end.social/users/leaverou/statuses/112899707220324213",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://front-end.social/users/leaverou/statuses/112899707220324213",
"pink.momostr"
],
[
"-"
]
],
"content": "npm link is a textbook example of a great idea rendered near-unusable by poor design (or implementation? Hard to tell).\n\nThe purpose is clear: Link to certain deps locally, so you can modularize without having to get every change through npm or make edits.\n\nBut it silently stops working and modules fall back to installed versions seemingly at random.\n\nI have yet to build a consistent mental model about when exactly this happens. At this point, I can't even confidently assert it's deterministic!",
"sig": "60f5b1af6cce76cc9325b4dd45000da02748920f89a6e562b0d15e6caf2f45019b77974aa96e1a9d963d9a5c22c96b58e71f477ca4216936f5e84b3332f12f92"
}