Skip to content

[BUG] "Unknown user/project config" warning about "email" #8716

@prantlf

Description

@prantlf

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

npm prints the following warning on the console:

npm warn Unknown user config "email". This will stop working in the next major version of npm.

The "email" property is documented. npm shouldn't complain about it.

There's another similar issue #8153, but it's about custom properties in .npmrc.

Expected Behavior

No warning about the "email" property.

Steps To Reproduce

  1. With the latest Node.js 24 LTS and the latest npm.
  2. With [email protected] in ~/.npmrc.
  3. Run 'npm --version`.
  4. See the warning appear.
❯ npm --version --verbose
npm verbose cli /Users/prantlf/.nodeup/24.11.0/bin/node /Users/prantlf/.node/bin/npm
npm info using [email protected]
npm info using [email protected]
npm warn Unknown user config "email". This will stop working in the next major version of npm.
11.6.2
npm verbose cwd /home/prantlf
npm verbose os Darwin 24.6.0
npm verbose node v24.11.0
npm verbose npm  v11.6.2
npm verbose exit 0
npm info ok

❯ node --version
v24.11.0

❯ echo $NODE_OPTIONS

Environment

  • npm: 11.6.2
  • Node.js: 24.11.0
  • OS Name: MacOS 15.7.1
  • System Model Name: MacBook Pro 2018
  • npm config:
//registry.npmjs.org/:_authToken=...
email[email protected]

init-author-name=Ferdinand Prantl
init-author-email[email protected]

save-prefix=^
package-lock=true
audit=true

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentationdocumentation related issuePriority 2secondary priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions