github npm/cli v12.0.0-pre.1

12.0.0-pre.1 (2026-06-19)

⚠️ BREAKING CHANGES

  • Preserve https protocol when working with git (#8703)
  • The default license for npm init has been changed from "ISC" to an empty string. If not set, the license field will be omitted from new packages.
  • npm now supports node ^22.22.2 || ^24.15.0 || >=26.0.0
  • allow-git and allow-remote now default to "none"; set them to "all" (or "root") to install git or user-supplied tarball-URL dependencies.
  • root `preinstall` now runs before dependencies are installed.
  • unknown configs in .npmrc, unknown CLI flags, abbreviated flags, and single-hyphen multi-char shorthands now throw instead of warning.

Features

Bug Fixes

Documentation

Dependencies

Chores

Don't miss a new cli release

NewReleases is sending notifications on new releases.