The additional node_modules/.package-lock.json
is a helper file, which speeds up npm under normal circumstances. When npm finds, that node_modules
hasn't changed (checked by e.g. looking at the modified-time of package folders), it can be used instead of processing the folder repeatedly.
As RobC mentions in his comment:
A comprehensive description for node_modules/.package-lock.json
can be found in the Hidden Lockfiles section of the "yet to be published docs" in the GitHub repo.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…