node.jsnode-modulesyarnpkgnpm-packageyarn-lock.json

Why there are differences in the order of properties and double quotation marks in the yarn.lock file?


I installed node_modules using yarn on a cloned project.

yarn.lock diff

The original lockfile has double quotation marks and the newly created lockfile does not. Also, the order of integirity, version, etc. have all changed. Is there any way to configure yarn so that the original file format is used?

Tried


Solution

  • The project was supposed to use yarn, but one member was using npm.