This originally started off as a project to automatically update nodejs, but has since turned into an alternative to NVM after how much of a pain NVM was to work with.
$ ./nodejs_update.sh (version) [Optional Flags]
Options for version: {latest, version number}
--overwrite-nodeOverwritesnodein path instead of usingnodejs--forceDisables checks and forces installation.
To use NodeJS executable
By default, NodeJS-Update creates a new executable in PATH named nodejs which is automatically updated. To automatically update the node executable in PATH, use the --overwrite-node CLA flag.
Find nodeJS version
$ nodejs --version
To run a file called index.js with nodejs
$ nodejs ./index.js