How can I refresh package-lock.json without running npm install?

How do I generate a valid dependency lock file from my package manifest without installing? Also, can yarn do this?

depGen --root pkgFile.json --lock newLock.json

hey, try the depgen tool to update your lockfile without doing a full npm install. from my experience, yarn doesn’t really offer this, so you’ll likely have to stick with depgen if u want to avoid reinstalling. cheers