Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface INpmInstallArgs

Npm config options passed to the install command.

Hierarchy

  • INpmInstallArgs

Indexable

[key: string]: string | undefined

Allows us to handle scoped registries in the future

Index

Properties

Optional allowScripts

allowScripts: string

A comma-separated list of package names that are allowed to run their npm install scripts (preinstall, install, postinstall, and prepare). The names must match exactly. This is passed to npm as its own --allow-scripts option.

npm 12 blocks these scripts unless the package is in the list. Older versions of npm do not know this option and ignore it. If this is undefined or has no package names, we do not add the option at all, so npm decides what to do.

prefix

prefix: string

The location to install global packages

Optional registry

registry: string

The base URL of the npm package registry

Generated using TypeDoc