Our team has just upgraded to npm @ 5. package-lock.json was unified between Windows and Mac (some dependencies are not mandatory, therefore they are not installed on Windows, but they work on Mac), therefore, regardless of what is on the machine, we will generate the same node_modules structure. Everything went well, then each of the team members went through the following steps:
rm -rf node_modulesgit pullnpm install
This is really great for all team members except one who had a modified package-lock.json after npm install . One modified line was that it removed "requires": true .
So I saw:
{ ... "version": "0.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { ... }
But he saw:
{ ... "version": "0.0.1", "lockfileVersion": 1, "dependencies": { ... }
Does anyone know why requires: true can be removed from the package-lock.json on some machines, but not on others? Also, a little explanation of what this property does will not hurt. :)
Thanks in advance!
atdrago
source share