I deleted it by accident and have made many changes to package.json
since. An npm install
or npm update
do not generate package-lock.json
anymore. I tried clearing my npm cache and my nvm cache, but nothing seems to be working. I tried it on several versions of Node.js (6.10.3 Node.js – 3.10.10 npm is what I would like it to work on), and it doesn’t work on any.
Is there a way to force npm to generate the package-lock.json
file?