Hacker News new | ask | show | jobs
by dilan-dio4 1435 days ago
Just ran into a similar problem for creating an installation script for my project, Keagate (https://github.com/dilan-dio4/Keagate).

My solution was to use a bash installation script (https://github.com/dilan-dio4/Keagate/blob/main/packages/scr...) that checks if Node and NPM is installed. If it not, it automatically installs them via NVMs one-liner (can be seen in the bash here: https://github.com/dilan-dio4/Keagate/blob/d7442118a4846daf3...). The script then invokes the rest of the project via node.

This creates a cross-platform, streamlined installation workflow that natively goes from Bash (eww) to Node (nice).