Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
I can use npm init -y and it works but there is a warning.
Expected Behavior
No warning and future versions should continue working.
Steps To Reproduce
echo "init.type=module" >> ~/.npmrc
npm init -y
Environment
- npm: 11.7.0
- Node.js: v22.22.0
- OS Name: macOS
- System Model Name: MacBook Pro
- npm config:
; "user" config from /Users/styfle/.npmrc
//registry.npmjs.org/:_authToken = (protected)
init.type = "module"
; node bin location = /usr/local/bin/node
; node version = v22.22.0
; npm local prefix = /Users/styfle/Code/foobar
; npm version = 11.7.0
; cwd = /Users/styfle/Code/foobar
; HOME = /Users/styfle
; Run `npm config ls -l` to show all defaults.