npm-check icon indicating copy to clipboard operation
npm-check copied to clipboard

Updating package-lock.json file after npm-update -u

Open davidtzoor opened this issue 8 years ago • 4 comments
trafficstars

Hi,

I noticed that the package-lock.json file isn't affected by the npm-check -u command, after installation is completed.

Is there a way to get npm-check update this file?

Thanks :)

davidtzoor avatar Oct 02 '17 08:10 davidtzoor

npm-check -u does update package-lock.json for me, check if you're using npm 5 or higher.

Ionaru avatar Oct 10 '17 09:10 Ionaru

Yeah, npm-check just executes npm install ... so the lockfile should be updated if you are using npm 5 or higher

LinusU avatar Oct 10 '17 09:10 LinusU

It's not updating for me.

I am using npm v6.8.0

jsveron23 avatar Feb 17 '19 06:02 jsveron23

Same thing happened for me. I upgraded wdio/cli from 8.39.1 to 9.1.0 but afterwards the transitive dependency import-meta-resolve was still pinned to 4.0.0 in package-lock.json even though 4.1.0 has been releated and the package.json for wdio/cli points to ^4.0.0.0 I also tried to delete node_modules and re-run npm install, and the lock file still pointed to import-meta-resolve 4.0.0. After that I deleted the lock file and re-ran "npm install" and even then I still had import-meta-resolve 4.0.0 in the newly generated package-lock.json. Finally, after deleting both node_modules dir and package-lock.json simultaneously and re-running "npm install" I finally got import-meta-resolve 4.1.0 pinned in the lock file. I'm using node 22 and npm 10.8.3.

mo avatar Sep 24 '24 06:09 mo