Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Node.js v24 url.parse() DeprecationWarning #9492

@MrMinemeet

Description

@MrMinemeet

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

No response

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

Using Node.js 24.0.0 with pnpm v10.10.0

Ran pnpm install in any repo

Describe the Bug

When running pnpm install with Node.js 24.0.0 and pnpm v10.10.0, Node.js prints the following warning:

(node:41588) [DEP0169] DeprecationWarning: url.parse() behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for url.parse() vulnerabilities.

It continues to install, but the usage of the depracation warning may be resolved.

Warning with --trace-deprecation:

(node:42483) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
    at Object.urlParse [as parse] (node:url:130:13)
    at toNerfDart (/home/mrminemeet/.cache/node/corepack/v1/pnpm/10.10.0/dist/pnpm.cjs:49806:24)
    at getAuthHeadersFromConfig (/home/mrminemeet/.cache/node/corepack/v1/pnpm/10.10.0/dist/pnpm.cjs:97136:74)
    at createGetAuthHeaderByURI (/home/mrminemeet/.cache/node/corepack/v1/pnpm/10.10.0/dist/pnpm.cjs:97200:83)
    at createClient (/home/mrminemeet/.cache/node/corepack/v1/pnpm/10.10.0/dist/pnpm.cjs:97263:80)
    at createNewStoreController (/home/mrminemeet/.cache/node/corepack/v1/pnpm/10.10.0/dist/pnpm.cjs:100830:85)
    at createOrConnectStoreController (/home/mrminemeet/.cache/node/corepack/v1/pnpm/10.10.0/dist/pnpm.cjs:101128:70)
    at async installDeps (/home/mrminemeet/.cache/node/corepack/v1/pnpm/10.10.0/dist/pnpm.cjs:187069:21)
    at async /home/mrminemeet/.cache/node/corepack/v1/pnpm/10.10.0/dist/pnpm.cjs:220728:23
    at async main (/home/mrminemeet/.cache/node/corepack/v1/pnpm/10.10.0/dist/pnpm.cjs:220686:34)

Expected Behavior

Run pnpm install and don't receive the deprecation warning

Which Node.js version are you using?

24.0.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions