Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

programs.npm.enable

Whether to enable npm user config.

Type: boolean

Default:

false

Example:

true

Declared by:

programs.npm.package

The nodejs package to use.

Type: null or package

Default:

pkgs.nodejs

Example:

nodejs_24

Declared by:

programs.npm.settings

The user-specific npm configuration. See https://docs.npmjs.com/cli/using-npm/config and https://docs.npmjs.com/cli/configuring-npm/npmrc for more information.

Type: attribute set of (INI atom (null, bool, int, float or string) or a list of them for duplicate keys)

Default:

{
  prefix = "\${HOME}/.npm";
}

Example:

{
  color = true;
  include = [
    "dev"
    "prod"
  ];
  init-license = "MIT";
  prefix = "${HOME}/.npm";
}

Declared by: