setupnodejs — Command Reference
Find, install, remove or select default Eenos Node.js runtimes.
Find, install, remove or select default Eenos Node.js runtimes.
Requirements
Run as root on the Eenos server. Use the exact version/package identifier returned by --search or --list. Availability depends on the configured OS and Eenos repository; do not infer support from an example version.
Usage
The following example uses the operation described below; replace example identities and paths before use:
/usr/local/eenos/scripts/setupnodejs --listArguments and options
| Argument / option | Usage and meaning |
|---|---|
-s, --search | Flag. Show available Node.js versions. |
-l, --list | Flag. Show installed Node.js versions. |
-i, --install | Value: NODEJS. Install an Eenos Node.js version. |
-r, --remove | Value: NODEJS. Remove an Eenos Node.js version. |
-d, --default | Value: NODEJS. Set the default server Node.js version. |
-h, --help displays this parser's help. Selectors in the same mutually exclusive group cannot be combined. The installed version remains authoritative for available options.
Operational effects
--search queries available packages and --list inspects installed Node.js versions. Install/remove/default change the server runtime setup. Removing a version can break applications using it.
Choose one operation. A server default does not establish that every existing per-domain application has been switched.
Verify the result
List the installed runtimes afterward and verify applications using the changed version.
Check operation output and the relevant service/application state. Several legacy wrappers exit successfully after logging a handler failure, so a zero shell exit status alone is not proof of completion.