Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Installs node and global packages. This operation can be placed right before other node executions in build, deploy, test, or utility workflows. If node is already installed in specified folder, this operation will not perform any changes. Note that this operation will install specific version-based folder for each version of node and manage global packages in that upon execution.

Inputs

Input Name

Input Code

Required

Description

Node Install Name

FDNODE_INP_INSTALL_NAME

Yes

Folder with Install Name is used in installation path. This should be helpful when separate global package configurations is required for various projects.

This input defaults to shared.

For example, <Endpoint Working Directory>/installs/nodejs/{FDNODE_INP_INSTALL_NAME}/{FDNODE_INP_NODE_VERSION}

e.g. /var/flexdeploy/production/installs/nodejs/shared/v10 is where node will be installed for shared as name and v10.

If you need specific combination of node and global packages, you can install that in separate folder and use necessary node based execution using that installation.

Install Node Version

FDNODE_INP_NODE_VERSION

Yes

Version of node to be installed. Each version is installed in separate folder under Node Install Name folder.

This input defaults to v14.

Global NPM Packages

FDNODE_INP_GLOBAL_NPM_PACKAGES

No

Space separated list of NPM packages that will be installed globally. You can specify versions by appending the version after the package with @ sign. (For example, grunt@1.3.0 grunt-cli@1.3.2)

It is recommended to use versions like grunt@1.3.0 instead of just grunt to get predictable behavior for builds.

.npmrc Configuration Content

FDNODE_INP_NPMRC_CONFIGURATION_CONTENT

No

npm configurations entered as list of key = value parameters(e.g. loglevel=notice).All the configurations are written to .npmrc file in the internal directory to be used during execution. @Since 6.5.0.15

 

All default npmrc configurations are listed when the command “npm config list -l” is run. For more details, refer https://docs.npmjs.com/cli/v10/commands/npm-config

Outputs

Output Name

Description

FDNODE_OUT_NODE_PATH

An absolute path where Node and Global Packages were installed.

Artifacts

This operation does not produce or consume artifacts.

Endpoint Selection

This operation delegates endpoint selection to workflow developer.

Endpoint Execution 

This operation delegates endpoint execution to workflow developer.

  • No labels