←back to thread

272 points abdisalan | 2 comments | | HN request time: 0s | source
Show context
binarymax ◴[] No.42175675[source]
I always try to remember to put the node version in my package.json - but I do agree that the dependency chain on node-gyp has been a blight on node packages for awhile. Really wonder how that wart became such a critical tool used by so many packages.
replies(2): >>42175709 #>>42175766 #
com2kid ◴[] No.42175766[source]
node-gyp is a huge source of these issues for Node projects, especially older ones.

For those reading this who don't know much about node - node-gyp is how you pull in native code libraries to Node projects, typically for performance reasons. You get the same sorts of build issues with it that you can get whenever you start having binary, or source, dependencies, and you need the entire toolchain to be "Just Right(tm)".

I run into this issue with older Node projects on ARM Mac machines (Still!), but I run into similar issues with Python projects as well. Heck some days I still find older versions of native libraries that don't have working ARM builds for MacOS!

Node used to have a lot more native modules, in newer code you typically don't see as much of that, and accordingly this is much less of an issue now days.

> I always try to remember to put the node version in my package.json

This 100x over!

replies(1): >>42175885 #
le-mark ◴[] No.42175885[source]
> For those reading this who don't know much about node

I would prefer to remain blissfully ignorant, thank you!

replies(2): >>42176863 #>>42177485 #
1. philipwhiuk ◴[] No.42177485[source]
Why did you click on "The tragedy of running an old Node project" then
replies(1): >>42270224 #
2. le-mark ◴[] No.42270224[source]
To take delight in node users misery perhaps?