At work we're using a very old template (generated around April 2021, so node v14.19) which has an out of sync package-lock.json
. This means that if you do:
rm package-lock.json && npm install
The install will fail due to conflicting dependencies.
For a couple of weeks me and my teammates tried to fix this, but we haven't succeed yet: when you fix the dependencies you break eslint, when you fix eslint you break deployment, when you fix deployment then the logger will stop working and so on. We have thousands of dependencies that are turning out to be an hell to maintain.
The pov of our CTO is that we simply shouldn't delete the package-lock.json
, but this means we can't update node and we are stick with what I think is a huge technical risk.
Do you think it's fixable? Have you ever been in a similar situation?
Is not deleting the
package-lock.json
enough to avoid the problem?If not, how could I produce an example where I can break the flow? maybe by installing a modern package that is incompatible with the old resolution?