I’m trying to modify a JS/node project which has package.json
but not package-lock.json
file committed. The author also does not have the original package-lock.json
because newer versions has been developed.
However, generating a new package-lock.json
makes the project failure to run, due to changes in the dependencies. This is because the generation happens now and uses the up-to-date (compatible) dependencies.
So, is there a way to generate a package-lock.json
as if it was generated back at a specific date/time in history, using the up-to-date dependencies back then?