I’m not writing a node module or publishing, just wanting to use https://github.com/dataverity/chromehtml2pdf which is just a wrapper around google chrome puppeteer.
I have a working docker container which produced the package-lock.json and now I want to build another using the same versions of all the node tree. I am using npm 6.9.0.
If I try to use npm ci it complains about not having a package.json file. I create one with just a name and version, and it tells me 0 packages added.
I try using npm install and it replaces my package-lock.json with one just referring to my package.
Running npm init -y also seems to ignore the lock file despite some SO comments suggesting it should use the lock file to construct the tree.
How can I use the package-lock.json file to construct a matching node environment in docker?