Situation
.npmrc includes the configuration:
This causes a warning:
npm warn config shrinkwrap Use the --package-lock setting instead.
The deprecation is first noted in https://docs.npmjs.com/cli/v7/using-npm/config#shrinkwrap which continues also in https://docs.npmjs.com/cli/v11/using-npm/config#shrinkwrap
shrinkwrap
- Default: true
- Type: Boolean
- DEPRECATED: Use the --package-lock setting instead.
Alias for --package-lock
npm 12 no longer lists shrinkwrap
Steps to reproduce
Ubuntu 24.04.4 LTS, Node.js 20.20.1
git clone pkgjs/action pkgjs-action
cd pkgjs-action
npm install
Logs
$ npm install
npm warn config shrinkwrap Use the --package-lock setting instead.
npm warn deprecated eslint@9.39.5: This version is no longer supported. Please see https://eslint.org/version-support for other options.
added 133 packages, and audited 134 packages in 2s
28 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
Suggestion
Remove shrinkwrap=false from .npmrc. The equivalent package-lock=false is already listed.
Situation
.npmrc includes the configuration:
This causes a warning:
The deprecation is first noted in https://docs.npmjs.com/cli/v7/using-npm/config#shrinkwrap which continues also in https://docs.npmjs.com/cli/v11/using-npm/config#shrinkwrap
shrinkwrapAlias for --package-lock
npm 12 no longer lists
shrinkwrapSteps to reproduce
Ubuntu 24.04.4 LTS, Node.js 20.20.1
git clone pkgjs/action pkgjs-action cd pkgjs-action npm installLogs
Suggestion
Remove
shrinkwrap=falsefrom .npmrc. The equivalentpackage-lock=falseis already listed.