简体   繁体   中英

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差异

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

  • yarn or yarn install
    • The result was the same in both cases
  • yarn install --frozen-lockfile
    • Naturally, it was installed with no changes to the lock file.
    • This is fine for just installation, but when making changes to the package, the same problem occurs because the lock file is updated.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM