Package-lock.json Rewritten After Dependencies Installation
Node.js
31/10/2022
If you find yourself having your entire package-lock.json
file being rewritten after running npm install
, you may be using an incorrect ❌ node version for your project.
You can check your currently used version with node -v
in your terminal and compare it to the supported node version in the engines
field of your package.json
file.