Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

pnpm install for packages with "bugs" or "homepage" fields incurs a deprecation warning in Node.js v24 #9529

Copy link
Copy link
@jeremybanka

Description

@jeremybanka
Issue body actions

Verify latest release

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

pnpm version

10.11.0

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

https://github.com/jeremybanka/pnpm-url-parse-repro

Reproduction steps

# Clone the reproduction repo
git clone https://github.com/jeremybanka/pnpm-url-parse-repro
cd pnpm-url-parse-repro

# Ensure you have the (as of this writing) current versions of node and pnpm
node -v # 24.0.1
pnpm -v # 10.11.0

# Run the script to reproduce the problem
pnpm will-show-warning

This will show a warning that url.parse() is deprecated and is called in the method fixHomepageField().

Describe the Bug

pnpm ships a bundle containing multiple instances of the deprecated url.parse, leading to frequent warnings when using pnpm install.

Searching the file .../pnpm/10.11.0/dist/pnpm.cjs for the phrase url.parse turns up five results.

To ensure that this warning does not occur when running pnpm install, all uses of url.parse should be removed.

  • normalize-package-data@5.0.0/.../fixer.js
  • @pnpm+npm-package-arg@1.0.0/.../npa.js
    • owned by pnpm
    • uses url.parse in fromURL()
  • @pnpm+nopt@0.2.1/.../nopt.js
    • owned by pnpm
    • uses url.parse in validateUrl()

Expected Behavior

No warnings when running pnpm install.

Which Node.js version are you using?

24.0.1

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

PatrickHoeckler, mklein994, peterhirn, Rudxain, hildjj and 10 more

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.