▲ | binarymax 7 days ago | ||||||||||||||||||||||||||||||||||||||||||||||
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. | |||||||||||||||||||||||||||||||||||||||||||||||
▲ | com2kid 7 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
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! | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
▲ | ramesh31 7 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||||||||
>Really wonder how that wart became such a critical tool used by so many packages. The original dream for Node was that it would simply be a glue wrapper around libuv that allowed for easy packaging/sharing of modules written in C++. But everyone just started writing everything in JS, and the ecosystem ended up as a mish-mash of native/non-native. Ryan Dahl stated this was indeed his biggest mistake/regret with Node, thus we have Deno now. | |||||||||||||||||||||||||||||||||||||||||||||||
|