Hacker News new | ask | show | jobs
by davexunit 3782 days ago
Using npm to distribute a shell script, seriously? That's not such a good idea. I think what you want is something like the Autotools so your software may be installed with the standard './configure && make && make install'. This way, you make it easy for upstream distributions to package your software.
1 comments

Wouldn't that have issues with Windows? I'm not a huge fan of NPM but it works really well when you want to be cross platform.
npm only works well for Windows if the program you're distributing is itself in JavaScript using Node. If you're using npm to distribute a shell script, then you still need a Unixy environment for Windows like Cygwin or MSYS, and in that case, autotools is probably no worse.