▲ | speedgoose 7 days ago | |||||||||||||||||||||||||||||||||||||||||||||||||
I would heavily recommend to avoid NodeJS packages that depend on node-gyp. Node-gyp powered dependencies are very seldomly worth the hassle. If you must depend on node-gyp, perhaps use dev containers so at least every developer in your team can work most of the time. | ||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | eterm 7 days ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
I don't even know what node-gyp is, but I know it appears regularly in error messages to know it causes problems. I don't even develop against Node, it has just crept into our front-end build toolchain. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | graypegg 7 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
So I'm pretty uninformed about the guts of node-gyp, and why it's used, but if people need to bring in dependancies from outside javascript... could WASM be a good fit there? Could store the binaries instead, and ship those... and in theory (correct me if I'm wrong) that shouldn't be much of a security issue due to the security model of WASM modules... or at least equal to the risk of running arbitrary build commands on your machine from a random node package. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | trinix912 6 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
Pardon my ignorance, but wouldn’t that rule out most image processing packages that depend on (and often build during install) imagemagick as the backend? A long time ago I tried to avoid it in a project but really couldn’t find any decent node image processing package that wouldn’t at some point depend on it. Maybe I just didn’t look far enough? | ||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | vivzkestrel 6 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
one of the most crucial packages that use node-gyp are bcrypt and argon2. Both are needed heavily for password hashing while implementing authentication and while pure js alternatives are available, they run terribly | ||||||||||||||||||||||||||||||||||||||||||||||||||
|