Skip to content
Evergreen Evergreen
Documentation

read-package-json is no longer supported

End of life. The source gives no day. Replacement: @npmcli/package-json. Source: read-package-json package deprecation notice.

Check a version:

evergreen check pkg:npm/read-package-json

npm states that read-package-json is no longer supported and recommends @npmcli/package-json.

Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>

   
Status End of life
Severity high
Ecosystem npm
Component pkg:npm/read-package-json
Affected versions vers:npm/*
Date from the source The source gives no day
Replacement @npmcli/package-json
Evidence last seen 2026-10-16
Reviewed 2026-10-16 by arminazimi, drafted by the npm-deprecated importer
Review due 2027-10-16 (365 days after the last review)
Rule ID npm.package.read-package-json.eol

Sources

Migration

Constraints

  • Preserve package normalization, extra metadata loading, error handling, file paths, warnings, and callback or promise timing relied on by callers.

Steps

  1. Move to @npmcli/package-json. Replace the dependency and reads with @npmcli/package-json, adapting its promise-based API and normalized result shape.

Verification

  • npm run test --if-present: Run valid, malformed, missing, and normalized package metadata tests.

Detected by

The npm detector. See Detectors and Compatibility.

Same ecosystem

Data

This page is generated from registry/npm.json, rule npm.package.read-package-json.eol, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.

Last updated