Why does `package-lock.json` causes a failure in a docker container build when `npm install`?
问题 There are a lot of people online asking this same question in different ways but there is no clear answer. Can anybody understand enough to explain why a docker build fails when package-lock.json file exists in the application, but runs successfully when it is not? Seemingly it is related to npm but it is not clear. Everybody says delete the package-lock.json , but it is there for a reason. Note: npm install works fine on my local machine, just fails in docker container. If I have this