|
|
|
|
|
by adamkl
2106 days ago
|
|
It seems like "the hundreds of lower-level dependencies" is a problem that is unique to JavaScript due to its lack of a standard library. JavaScript has a huge ecosystem, and as a result produces many new, interesting ideas, but its also the source of a lot of churn. I remember working on large-ish (+300k LoC) .Net applications that were essentially dependent on just the .Net Framework itself. For those looking to prioritize stability, the "solution" would probably be to avoid Node.js based applications altogether. Use something like JavaScript/Node.js where it makes sense, in the front-end, and for developing thin API layers to support your front-ends. For heavy lifting (data and complex business logic) look towards languages/tools that prioritize stability. |
|
I ran into this recently. Firefox has a "packager" for putting together add-ons. It uses "node.js". All it really does is apply "zip" to some files. I tried to install the "packager" on Ubuntu 18.04 LTS. It had several hundred dependencies, and wouldn't run because of some version dependency in node.js for something totally irrelevant to the task at hand. Mozilla support suggested upgrading the operating system on the development machine.
I wrote a one-line shell script which zipped up the proper file types into one file to package the add-on.