install

Install npm packages into the project, including dependencies and development dependencies.

Example

{
  "op": "install",
  "dep": ["react", "react-dom"],
  "devDep": ["typescript", "@types/react"]
}

Fields

FieldsTypeDescription
op'install'Specifies the type of operation. For InstallOperation, this field must be 'install'.
depstring[]An array of package names to install as regular dependencies.
devDepstring[]?An array of package names to install as development dependencies.