garzj / google-photos-migrate

A tool to fix EXIF data and recover filenames from a Google Photos takeout, preserving albums within the directory structure.
https://npmjs.com/package/google-photos-migrate
MIT License
104 stars 11 forks source link

[Bug] Yarn.lock dependencies conflict for fullMigrate #12

Closed mtalexan closed 9 months ago

mtalexan commented 9 months ago

The string-width and string-width-cjs requirements apparently conflict, with line 600 in the yarn.lock (https://github.com/garzj/google-photos-migrate/blob/full-migration/yarn.lock#L600) causing an issue.

string-width-cjs needs string-width@^4.2.0 while string-width is also called out as string-width@^4.1.0 which is directly in conflict with the version requirements/limits.

It results in the following warning when running yarn build:

warning Pattern ["string-width@^4.1.0"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping.

In this case it appears it happens to pick the 4.2.0 version, which since it seems to function would suggest the explicit string-width@^4.1.0 could be updated (or maybe just removed since the string-width-cjs is already included and implicitly provides it as well(?).