9.0.0 (2026-05-22)
⚠️ BREAKING CHANGES
init-package-jsonnow supports node^22.22.2 || ^24.15.0 || >=26.0.0- template-oss-apply
- The author prompt will now be shown even if an author is already specified in the existing package.json. If the user leaves the prompt blank, the author field will be omitted from the resulting package.json instead of being set to an empty string.
- existing packages in
node_modulesare no longer used to try to pre-populate dependencies and devDependencies - The license field is no longer included by default when running
npm initornpm init --yes. If you want to include a license, you can either set it in your npm config (npm set init-license=MIT) or provide it interactively when runningnpm init.
Features
042e1c4#359 bump to new node engine range (@owlstronaut)965f605#359 template-oss-apply (@owlstronaut)0ab701a#352 make author prompt even when already specified (@owlstronaut)6e34dd8#350 omit license field by default when initializing package.json (@owlstronaut)
Bug Fixes
cddad4f#349 stop auto populating dependencies (#349) (@wraithgar)
Dependencies
2959f9c#359validate-npm-package-name@8.0.096a5bb8#359read@6.0.0fefbeee#359promzard@4.0.06114288#359npm-package-arg@14.0.0da6fbc1#359@npmcli/package-json@8.0.0
Chores
43073db#359@npmcli/eslint-config@7.0.0(@owlstronaut)0f70db1#359 template-oss-apply (@owlstronaut)7dfdb1a#359 bumping @npmcli/template-oss from 4.30.0 to 5.1.0 (@owlstronaut)cc57229#350 template-oss-apply (@owlstronaut)e885190#348 bump @npmcli/template-oss from 4.29.0 to 4.30.0 (#348) (@dependabot[bot], @npm-cli-bot)