nodejs¶
Synopsis¶
Installs a pinned Node.js release from a prebuilt tarball served by the PUL mirror, optionally enables Corepack-managed Yarn, runs npm dependency installs, and executes Webpack builds with configurable per-environment scripts.
The distro-packaged
nodejsis removed by default to avoid PATH shadowing (seenodejs_remove_apt_node).
Parameters¶
Parameter |
Comments |
|---|---|
Deploy directory path set by the |
|
Deployment user name set by the |
|
Legacy variable name that |
|
Legacy application user name. Used as the second fallback for |
|
Unix user that owns the npm/webpack build steps. Falls back to Default: |
|
Delay in seconds between download retries. Default: |
|
Number of retries for the Node.js tarball download. Default: |
|
Timeout in seconds for the Node.js tarball download. Default: |
|
Installation method. Currently only Default: |
|
Run an npm dependency install step (used by the Choices:
|
|
npm install strategy. Default: |
|
Target directory for Default: |
|
Installation prefix. Node.js binaries are placed under Default: |
|
Base URL for the Node.js tarball mirror. Override only when using a local or alternative mirror. Default: |
|
When Choices:
|
|
Node.js release to install. Accepts both Default: |
|
Mapping of Default: |
|
Enable verbose Webpack build output for troubleshooting. Choices:
|
|
Run a Webpack build step after npm install. Choices:
|
|
When Choices:
|
|
Computed default path for Default: |
|
Explicit path to Default: |
|
Enable Corepack-managed Yarn (Berry). Classic Yarn via apt is not supported by this role. Choices:
|
|
Yarn release version to activate via Corepack. Default: |
|
Alternate name for |
|
Legacy override for the |
|
Legacy override for the |