How to update package-lock.json without doing npm install?
npm As of npm 6.x, you can use the following command: npm i –package-lock-only Documentation (https://docs.npmjs.com/cli/install.html) says: The –package-lock-only argument will only update the package-lock.json, instead of checking node_modules and downloading dependencies. yarn As of yarn 3.0.0, you can use the following command: yarn install –mode update-lockfile Documentation (https://yarnpkg.com/cli/install#options-mode%20%230) says: If the –mode=<mode> option is … Read more