Select CLI Version:

11.4.0 (2025-05-15)

Features

  • a0e60fb #8246 added init-private option (@owlstronaut)
  • 57aa89f #8265 use run by default and run-script as the alias (#8265) (@owlstronaut)
  • 0d4c023 #8234 install: add package info to json output (#8234) (@wraithgar)

Bug Fixes

  • 8794fd9 #8297 powershell: support pipeline input with Invoke-Expression (#8297) (@alexsch01)
  • b5173d1 #8293 docs: corrected github_path (#8293) (@xaos7991)
  • 2210d7a #8278 powershell: use Invoke-Expression to pass args (#8278) (@alexsch01)
  • 8669d09 #8228 add otplease for enable-2fa, disable-2fa, access (#8228) (@reggi, @wraithgar)
  • 78b5a6f #8269 correctly handle scenario where prefix is the cwd (#8269) (@owlstronaut, @ficocelliguy)
  • fdc3413 #8221 exec: Fails to Execute Binaries Named After Shell Keywords (#8221) (@13sfaith)
  • 4b08e2e #8245 docs: prepare script runs for local package links (@milaninfy)
  • 1622ac4 #8241 handle missing time in packument to prevent crash on npm view (@owlstronaut)
  • db8f5da #8110 outdated: add dependent location in long output (#8110) (@milaninfy, @wraithgar)

Documentation

  • d2498df #8295 Remove CHANGELOG from never-ignored list (#8295) (@mrazauskas)
  • 4d5c3c1 #8283 fix overrides example in package-json.md (#8283) (@glasser)
  • 96cc4f9 #8226 format publish as code to highlight it (@LiangYingC)
  • 4990ea0 #8226 clarify legacy token creation in npm login and adduser commands (@LiangYingC)

Dependencies

Chores

11.3.0 (2025-04-08)

Features

Bug Fixes

  • 2f5392a #8135 make npm run autocomplete work with workspaces (#8135) (@terrainvidia)

Documentation

  • 26b6454 fix grammer in local path note (@cgay)
  • 1c0e83d #7886 fix typo in package-json.md (#7886) (@stoneLeaf)
  • 14efa57 #8178 fix example package name in overrides explainer (#8178) (@G-Rath)
  • 4183cba #8162 logging: replace proceeding with preceding in loglevels details (#8162) (@tyleralbee)

Dependencies

Chores

11.2.0 (2025-03-05)

Features

Bug Fixes

  • 8461186 #8100 update npx cache if possible when spec is a range (@wraithgar)
  • e345cc5 #8050 don't suggest npm update outside of valid engine range (#8050) (@milaninfy)
  • 811ca29 #8115 stop working around bug fixed in [email protected] (@TrevorBurnham)
  • 879303c #8078 warn on invalid publishConfig (#8078) (@wraithgar)
  • 41417de #8080 warn when TUF fetching of keys fails (#8080) (@wraithgar)
  • 593c849 #8076 warn on invalid single-hyphen cli flags (#8076) (@wraithgar)

Dependencies

Chores

11.1.0 (2025-01-29)

Features

  • 7f6c997 #8009 add dry-run to deprecate/undeprecate commands (@wraithgar)
  • 1764a37 #8009 add npm undeprecate command (@wraithgar)

Bug Fixes

  • 31455b2 #8054 publish: honor force for no dist tag and registry version check (#8054) (@reggi)
  • dc31c1b #8038 remove max-len linting bypasses (@wraithgar)
  • 8a911ff #8038 publish: disregard deprecated versions when calculating highest version (@wraithgar)
  • 7f72944 #8038 publish: accept publishConfig.tag to override highes semver check (@wraithgar)
  • ab9ddc0 #7992 sbom: deduplicate sbom dependencies (#7992) (@bdehamer)
  • f7da341 #7980 search: properly display multiple search terms (#7980) (@wraithgar)

Documentation

  • 3644e79 #8055 update readme for Node.js versions, remove badges (#8055) (@wraithgar)
  • f1af61f #8041 fix typos in "package-json" (#8041) (@maxkoryukov)
  • e90c6fe #8051 depth flag default value (#8051) (@milaninfy)
  • 866b5ee #8030 safer documentation urls, repos, packages (#8030) (@reggi)

Dependencies

Chores

11.0.0 (2024-12-16)

Documentation

  • 8a911da #7963 ls: removed design change pending section note (#7963) (@milaninfy)

Dependencies

Chores

11.0.0-pre.1 (2024-12-06)

⚠️ BREAKING CHANGES

  • Upon publishing, in order to apply a default "latest" dist tag, the command now retrieves all prior versions of the package. It will require that the version you're trying to publish is above the latest semver version in the registry, not including pre-release tags.
  • npm init now has a type prompt, and sorts the entries the created packages differently
  • bun.lockb files are now included in the strict ignore list during packing

Features

  • f3ac7b7 #7939 no implicit latest tag on publish when latest > version (#7939) (@reggi, @ljharb)

Bug Fixes

  • e362c6d #7944 prefix: remove duplicate -g from usage output (#7944) (@wraithgar)

Documentation

Dependencies

Chores

11.0.0-pre.0 (2024-11-26)

⚠️ BREAKING CHANGES

  • When publishing a package with a pre-release version, you must explicitly specify a tag.
  • --ignore-scripts now applies to all lifecycle scripts, include prepare
  • npm will no longer fall back to the old audit endpoint if the bulk advisory request fails.
  • npm will no longer switch to global mode if aliased to "npmg" or "npm-g" etc.
  • The npm hook command has been removed
  • Attestations made by this package will no longer validate in npm versions prior to 10.6.0
  • npm now supports node ^20.17.0 || >=22.9.0
  • @npmcli/docs now supports node ^20.17.0 || >=22.9.0

Features

Bug Fixes

  • 16b7367 #7910 publishing prerelease requires explicit tag (#7910) (@reggi)
  • e19bff0 #7901 perf: enable compile cache if present (#7901) (@H4ad)
  • 080a0f2 #7911 remove old audit fallback request (@wraithgar)
  • 780afc5 #7855 pkg: display if any of multiple attributes exist (#7855) (@Sanderovich)
  • ecd2d23 #7842 don't go into global mode if aliased to npmg (#7842) (@wraithgar)
  • 62c71e5 #7835 removes npm hook command (@reggi)
  • 7f541e8 #7815 make pack and exec work with git hash refs (#7815) (@milaninfy)
  • 3162620 #7831 sets node engine range to ^20.17.0 || >=22.9.0 (@reggi)
  • 4c8ba0a #7831 for @npmcli/docs sets node engine range to ^20.17.0 || >=22.9.0 (@reggi)
  • 70cd88d #7808 view: sort and truncate dist-tags (#7808) (@wraithgar)
  • 534ad77 #7795 remove unused parameters catch statements (#7795) (@btea)

Documentation

  • feb54f7 #7822 package.json: add libc field (#7822) (@wraithgar)

Dependencies

Chores

Edit this page on GitHub
6 contributorswraithgargithub-actions[bot]fritzynlflukekarrysruyadorno
Last edited by wraithgar on May 16, 2025