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 Current »

Executes Node JS script using the given inputs as parameters. You can specify which Node install you want to execute. See installNodeJS to install node and global packages prior to running this operation.

Inputs

Input Name

Input Code

Required

Description

Node Executable Path

FDNODE_INP_NODE_EXE_PATH

No

An absolute path to a Node executable or its parent directory. If not provided node must be on PATH, or new node can be installed by providing the version in the input 'Nodejs Version'.

Nodejs Version

FDNODE_INP_NODE_VERSION

No

Nodejs version. Installs node with the provided version. This input will be ignored if the input 'Node Executable Path' is also provided. @Since 7.0.0.3

Working Directory

FDNODE_INP_WORKING_DIRECTORY

No

The working directory where the node commands will be executed. This path can be absolute or relative. If relative the path will be relative to the temp directory. If not provided directory containing package.json will be used.

Node Commands

FDNODE_INP_NODE_COMMANDS

Yes

The script of commands to be executed with the specified installation of Node JS.

Artifacts to Save

FDNODE_INP_ARTIFACTS_TO_SAVE

No

This path will be relative to working directory. Use '.' notation to save the entire working directory. If no value is provided no artifacts will be saved. If produces artifacts is false, no artifacts will be created.

.npmrc

FDNODE_INP_NPMRC

No

npm configurations entered as list of key = value parameters(e.g. loglevel=notice), one key value pair per line. @Since 7.0.0.3

 

All default npmrc configurations are listed when the command “npm config list -l” is run.

Some examples are-

1.registry=https://registry.npmjs.org/ (Specifies the URL of the npm registry)

2.strict-ssl=false (Controls SSL certificate validation during HTTPS requests.)

3.proxy=http://your-proxy-url:port
https-proxy=http://your-https-proxy-url:port (Specifies the URL of the proxy server.)

4.loglevel=verbose (Sets the logging level for npm output (e.g., silent, error, warn, info, verbose, debug).)

5.production=true (Instructs npm to skip installation of devDependencies.)

For more details, refer https://docs.npmjs.com/cli/v10/commands/npm-config

Artifacts

This operation delegates the consume/produce artifacts decision to the workflow developer.

Endpoint Selection

This operation will select all available endpoints associated to the target.

Endpoint Execution 

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.

  • No labels