Skip to content

NPM for IBM DevOps Build - Steps ​

Steps ​

Steps ​

Process steps in the NPM plug-in ​

NPM Config ​

Manage NPM configuration files

NameTypeDescriptionRequired
ArgumentsStringAdd arguments for the config command. If there are multiple lines of arguments, each line will result in a separate npm config subcommand argument execution.No
NPM ExecutableStringThe location of the NPM executable. If left empty, the NPM executable should be in the path environment variable.No
Sub-commandEnumeration:
  • set
  • get
  • list
  • delete | Select a config sub-command | Yes |

NPM Init ​

Create a package.json with default values.

NameTypeDescriptionRequired
NPM ExecutableStringThe location of the NPM executable. If left empty, the NPM executable should be in the path environment variable.No

NPM Install ​

Install a package, and any package that it depends on.

NameTypeDescriptionRequired
ArgumentsStringAdd arguments for the install command in one or multiple lines.No
NPM ExecutableStringThe location of the NPM executable. If left empty, the NPM executable should be in the path environment variable.No

NPM Publish ​

Publish a package.

NameTypeDescriptionRequired
AccessEnumeration:
  • public
  • restricted | The package access level after publishing. This is either public or restricted. | No | | NPM Executable | String | The location of the NPM executable. If left empty, the NPM executable should be in the path environment variable. | No | | Package | String | Package location e.g. a folder containing a package.json file or a url or file path to a gzipped tar archive containing a single folder with a package.json file inside. NPM will publish . if no package is supplied. | No | | Tag | String | Registers the published package with the given tag. | No |

NPM Uninstall ​

Uninstall a package, completely removing everything NPM installed on its behalf.

NameTypeDescriptionRequired
ArgumentsStringAdd arguments for the uninstall command in one or multiple lines.No
NPM ExecutableStringThe location of the NPM executable. If left empty, the NPM executable should be in the path environment variable.No

NPM Update ​

Update a package.

NameTypeDescriptionRequired
ArgumentsStringAdd arguments for the update command in one or multiple lines. If no package names are specified, all packages in the specified location (global or local) will be updated.No
NPM ExecutableStringThe location of the NPM executable. If left empty, the NPM executable should be in the path environment variable.No