Yarn: bundledDependencies are not handled properly causing issues and warnings

Created on 29 Jun 2017  ·  41Comments  ·  Source: yarnpkg/yarn

Do you want to request a feature or report a bug?
bug

What is the current behavior?

{
  "dependencies": {
    "npm": "^3.10.5"
  }
}
$ yarn
yarn install v0.27.0
warning package.json: No license field
info No lockfile found.
warning No license field
[1/4] Resolving packages...
warning npm > request > [email protected]: Use uuid module instead
[2/4] Fetching packages...
[3/4] Linking dependencies...
error An unexpected error occurred: "The same file /Users/bestander/work/temp/3202/node_modules/npm/node_modules can't be copied twice in one bulk copy".
info If you think this is a bug, please open a bug report with the information provided in "/Users/bestander/work/temp/3202/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.



md5-a04d852348f2621065257c09c33ebbba



yarn add [email protected]
cat-bug help wanted high-priority triaged

Most helpful comment

Hi everyone! No need for more "happens to me" comments since we have a fairly good understanding of why and how this happens. We'll try to get at this ASAP, and at least suppress the warning since it is not useful to you, as the users.

Apologies for the trouble. In the meantime, if anyone is interested in giving this a shot until we do, feel free to ping me here or on Discord and I'd be happy to guide you!

All 41 comments

Scheduled to be released in 0.28 - either revert the check or find out why a folder is copied twice

FWIW, I've also experienced this using --nightly with the install script

Thanks, I'll investigate + convert the check into a warning

Pinning to 0.27.3 works for me.

Yeah, it is only in master right now

The problem is in bundledDependencies.
Sending a PR to make the issues non breaking installation

The bug is mitigated, the PRI can be lowered

The bug is mitigated, the PRI can be lowered

I think we should keep this high-prio and fix the underlying issue in 1.0

Still seeing these warnings on yarn install npm using v0.28.4.

Still happening in v1.0.1.

@artlogic yup, aware. Will look into this.

not sure it it's a proper solution, remove yarn.lock then re-run yarn worked for me :)

I am getting these warnings even with the list command:

Console output

λ yarn global list
yarn global v1.0.2
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
warning "[email protected]" has incorrect peer dependency "request@^2.34".
warning "[email protected]" has incorrect peer dependency "request@^2.34".
warning "[email protected]" has incorrect peer dependency "babel-core@^6.0.0".
warning "[email protected]" has incorrect peer dependency "webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc".
warning "[email protected]" has incorrect peer dependency "webpack@^2.2.0".
warning "[email protected]" has incorrect peer dependency "webpack@1 || ^2 || ^2.1.0-beta || ^2.2.0-rc || ^3".
warning "[email protected]" has incorrect peer dependency "file-loader@*".
warning "[email protected]" has incorrect peer dependency "css-loader@*".
warning "[email protected]" has incorrect peer dependency "vue-template-compiler@^2.0.0".
warning "[email protected]" has incorrect peer dependency "webpack@^1.0.0 || ^2.0.0 || ^3.0.0".
warning "[email protected]" has incorrect peer dependency "ajv@>=4.10.0".
warning "[email protected]" has incorrect peer dependency "babel-helper-vue-jsx-merge-props@^2.0.0".
warning "[email protected]" has incorrect peer dependency "babel-plugin-syntax-jsx@^6.8.0".
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\hosted-git-info shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\normalize-package-data shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npmlog shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\semver shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\update-notifier shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid shouldn't be copied twice in one bulk copy warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\which shouldn't be copied twice in one bulk copywarning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\hosted-git-info\git-host-info.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\hosted-git-info\git-host.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\hosted-git-info\index.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\hosted-git-info\LICENSE shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\hosted-git-info\package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\hosted-git-info\README.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\normalize-package-data\AUTHORS shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\normalize-package-data\lib shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\normalize-package-data\LICENSE shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\normalize-package-data\node_modules shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\normalize-package-data\package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\normalize-package-data\README.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\index.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\LICENSE shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\node_modules shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\README.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npmlog\CHANGELOG.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npmlog\LICENSE shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npmlog\log.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npmlog\package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npmlog\README.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\.npmignore shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\.travis.yml shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\CONTRIBUTING.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\doc shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\duplex-browser.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\duplex.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\GOVERNANCE.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\lib shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\LICENSE shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\passthrough.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\readable-browser.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\readable.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\README.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\transform.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\writable-browser.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\writable.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\semver\bin shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\semver\LICENSE shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\semver\package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\semver\range.bnf shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\semver\README.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\semver\semver.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\update-notifier\check.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\update-notifier\index.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\update-notifier\package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\update-notifier\readme.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\.npmignore shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\.travis.yml shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\AUTHORS shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\bin shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\HISTORY.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\index.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\lib shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\LICENSE.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\README.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\test shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\v1.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\v4.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\which\bin shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\which\CHANGELOG.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\which\LICENSE shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\which\package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\which\README.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\which\which.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\normalize-package-data\lib\extract_description.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\normalize-package-data\lib\fixer.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\normalize-package-data\lib\make_warning.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\normalize-package-data\lib\normalize.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\normalize-package-data\lib\safe_format.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\normalize-package-data\lib\typos.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\normalize-package-data\lib\warning_messages.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\access.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\adduser.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\attempt.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\authify.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\deprecate.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\dist-tags shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\fetch.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\get.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\initialize.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\logout.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\ping.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\publish.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\request.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\send-anonymous-CLI-metrics.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\star.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\stars.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\tag.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\team.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\unpublish.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\whoami.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\doc\wg-meetings shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\lib\internal shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\lib\_stream_duplex.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\lib\_stream_passthrough.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\lib\_stream_readable.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\lib\_stream_transform.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\lib\_stream_writable.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\semver\bin\semver shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\bin\uuid shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\lib\bytesToUuid.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\lib\rng-browser.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\lib\rng.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\test\mocha.opts shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\uuid\test\test.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\which\bin\which shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\dist-tags\add.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\dist-tags\fetch.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\dist-tags\rm.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\dist-tags\set.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\npm-registry-client\lib\dist-tags\update.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\doc\wg-meetings\2015-01-30.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\lib\internal\streams shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\lib\internal\streams\BufferList.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\lib\internal\streams\stream-browser.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\Users\suhas.karanth\AppData\Local\Yarn\config\global\node_modules\npm\node_modules\readable-stream\lib\internal\streams\stream.js shouldn't be copied twice in one bulk copy
info "[email protected]" has binaries:
   - brightness
info "[email protected]" has binaries:
   - bundle-buddy
info "[email protected]" has binaries:
   - git-cz
   - commitizen
info "[email protected]" has binaries:
   - cost-of-modules
info "[email protected]" has binaries:
   - cross-env
   - cross-env-shell
info "[email protected]" has binaries:
   - depcheck
info "[email protected]" has binaries:
   - diff-so-fancy
info "[email protected]" has binaries:
   - flow
info "[email protected]" has binaries:
   - jest-codemods
info "[email protected]" has binaries:
   - nsp
info "[email protected]" has binaries:
   - ntl
info "[email protected]" has binaries:
   - semantic-release-cli
info "[email protected]" has binaries:
   - serve
info "[email protected]" has binaries:
   - snyk
info "[email protected]" has binaries:
   - tsc
   - tsserver
info "[email protected]" has binaries:
   - vue
   - vue-init
   - vue-list
   - vue-build
Done in 13.20s.


Why would copy be required for listing globally installed modules?

@sudo-suhas, that is a separate bug.
Afaik yarn global list actually runs install command :(

@bestander I have created a separate issue for this - #4465

Still happening in v1.0.2
node v6.11.2
yarn v1.0.2
mac osx 10.12.6

NOT fixed
λ yarn -v
1.0.2
λ node -v
v8.1.2

win10 x64
yarn global list - not help me =\

@fefoweb @mrG0bliN the issue is still open and nowhere it says it is fixed so I'd appreciate not stating the obvious and keeping the signal to noise ratio of the issue high.

@BYK I just reported facts that could be helpful. it was not my intention to hurry up...

@fefoweb thank you. Didn't mean to offend you or anything. Just saying, as long as the issue is open, it is not fixed so no need to repeat the existing and assumed information 😉 Sorry if I came as harsh or anything ❤️

@BYK Hi, I'm experiencing this issue also. Perhaps, we could have a roll-up message for each immediate dependency that has duplicate file copies, something like:

"warning The module "[email protected]" has case-insensitive files that shouldn't be copied twice. Please run yarn with --verbose for a complete listing."

At least this would reduce the amount of warning text that hits the screen during install. The warning comes from:

https://github.com/yarnpkg/yarn/blob/0ee1c55fd55f3863a7544e40a774162764d29536/src/util/fs.js#L225

Maybe an approach would be to keep a Map of each module that encounters this issue, and report the above message only when it's first seen.

Thanks for your time and attention on this matter!

There is a flaw in the logic how folders are copied, probably because it all happens recursively and in parallel.
It should not affect end users very much (files won't be copied twice) but I did not want the developers to loose this issue out of sight because this flaw may cause unexpected behavior in the future.

If anyone has some time to go deep into the reasons why it is happening and provide a fix that would be so awesome.

@bestander I briefly looked at this a few days ago. Looks like it is due to us neglecting bundledDependencies completely. I think this is related to #4417

Why is this warning showing up at all if I may ask? Is this something package developers can do anything about at all? Let alone consumers of packages? Isn't it some internal "how yarn copies stuff" issue?

I'm literally being spammed with this error message with one particular repository generating about 150 of these warnings during a single install.

I hear you @adamreisnz, thanks for sharing the frustration. I'll try to look into it this week but at the very least, we should just remove the warning.

@adamreisnz can you share the package you are experiencing this issue with?

I know this is 99% related to how bundledDependencies are handled but just want to make sure your case is also covered by that.

@BYK an example repo to reproduce is here: https://github.com/clintmod/koa-neo4j-secure-rest-api
the fsevents package (refd by nodemon) is causing the warnings via node-pre-gyp that look like:

The case-insensitive file /Users/clint/code/github/clintmod/koa-neo4j-secure-rest-api/node_modules/fsevents/node_modules/node-pre-gyp/lib/reveal.js shouldn't be copied twice in one bulk copy

steps to repeatedly repro are:
rm -rf ./node_modules && yarn

where yarn version = 1.0.2

@BYK thanks for looking into it. The following package.json was what was causing so many warnings about bulk copies for us (but in reality, since upgrading to yarn 1.x.x, any package/site I work on generates these warnings);

{
  "name": "foo",
  "description": "",
  "version": "1.0.0",
  "homepage": "foo",
  "author": {},
  "contributors": [],
  "license": "SEE LICENSE IN LICENSE.md",
  "private": false,
  "repository": {},
  "keywords": [],
  "engines": {
    "node": "^7"
  },
  "main": "scripts/server.js",
  "dependencies": {
    "aws-sdk": "^2.6.7",
    "bcrypt": "^1.0.2",
    "bluebird": "^3.5.0",
    "body-parser": "^1.17.1",
    "chalk": "^1.1.3",
    "compression": "^1.6.2",
    "cookie-parser": "^1.4.3",
    "cors": "^2.8.1",
    "express": "^4.15.2",
    "glob": "^7.1.1",
    "handlebars": "^4.0.6",
    "http-as-promised": "^1.1.0",
    "i18n": "^0.8.3",
    "md5": "^2.2.1",
    "meanie-express-error-handling": "^2.1.0",
    "meanie-express-jwt-service": "^2.0.2",
    "meanie-express-raven-service": "^1.2.0",
    "meanie-mail-composer": "^1.0.0",
    "meanie-mongoose-only-id": "^1.0.1",
    "meanie-mongoose-set-properties": "^2.0.2",
    "meanie-mongoose-to-json": "^1.0.6",
    "meanie-multer-mime-types-filter": "^1.0.1",
    "meanie-passport-refresh-strategy": "^1.2.0",
    "moment": "^2.18.1",
    "mongoose": "^4.9.1",
    "morgan": "^1.8.1",
    "multer": "^1.3.0",
    "passport": "^0.3.2",
    "passport-http-bearer": "^1.0.1",
    "passport-local": "^1.0.0",
    "sendgrid": "^4.8.4",
    "sendgrid-mailer": "^1.0.5",
    "yargs": "^8.0.1"
  },
  "devDependencies": {
    "babel-cli": "^6.23.0",
    "babel-preset-es2015": "^6.24.0",
    "chai": "^3.5.0",
    "chai-as-promised": "^6.0.0",
    "dirty-chai": "^1.2.2",
    "eslint": "^3.11.1",
    "express-simulate-latency": "0.0.2",
    "istanbul": "^1.0.0-alpha.2",
    "mocha": "^3.2.0",
    "mocha-clean": "^1.0.0",
    "nodemon": "^1.11.0",
    "sinon": "^2.2.0",
    "sinon-as-promised": "^4.0.0",
    "sinon-mongoose": "^2.0.1"
  }
}

Yields

...
warning The case-insensitive file node_modules/fsevents/node_modules/har-validator/lib/node7/promise.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file node_modules/fsevents/node_modules/har-validator/lib/node4/async.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file node_modules/fsevents/node_modules/har-validator/lib/node4/error.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file node_modules/fsevents/node_modules/har-validator/lib/node4/promise.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file node_modules/fsevents/node_modules/har-validator/lib/node6/async.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file node_modules/fsevents/node_modules/har-validator/lib/node6/error.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file node_modules/fsevents/node_modules/har-validator/lib/node6/promise.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file node_modules/fsevents/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file node_modules/fsevents/node_modules/node-pre-gyp/lib/util/handle_gyp_opts.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file node_modules/fsevents/node_modules/node-pre-gyp/lib/util/nw-pre-gyp shouldn't be copied twice in one bulk copy
warning The case-insensitive file node_modules/fsevents/node_modules/node-pre-gyp/lib/util/s3_setup.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file node_modules/fsevents/node_modules/node-pre-gyp/lib/util/versioning.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file node_modules/fsevents/node_modules/node-pre-gyp/lib/util/nw-pre-gyp/index.html shouldn't be copied twice in one bulk copy
...

Most seem to be coming from fsevents.

Just my two cents here..not sure whether it's helpful. I started seeing this too today, but in my case, it's a module I installed from filesystem (yarn add file:...) and: I'm on Windows.
Have you guys replicated the issue on non-windows systems? Because.. I usually rest assured such issues are just because of Windows :)

Happens on Linux as well.

And OSX

I also see this error with the yargs lib. Doing a yarn list yargs reveals that my project actually has four different versions (and the same version twice?)

├─ [email protected]
│  └─ [email protected]
├─ [email protected]
│  └─ [email protected]
├─ [email protected]
│  └─ [email protected]
├─ [email protected]
│  └─ [email protected]
└─ [email protected]

I'm not sure how relevant this is to solving the problem but thought I'd share

@tim-soft I guess it's correct to see the same version twice because apparently, the main dependency is @3.10.0 and any package that requires a version different from that has to include it in its own ./node_modules. Happens to be twice.

Did a yarn install today and this showed up. It also indicated I should upgrade yarn to 1.1.0, but I get the same output.

warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/ansi-regex shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/camelcase shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/is-fullwidth-code-point shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/md5-hex shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/os-locale shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/path-type shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/read-pkg shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/read-pkg-up shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/resolve-from shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/string-width shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/strip-ansi shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/which-module shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/ansi-regex/index.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/ansi-regex/license shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/ansi-regex/package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/ansi-regex/readme.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/camelcase/index.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/camelcase/license shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/camelcase/package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/camelcase/readme.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/is-fullwidth-code-point/index.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/is-fullwidth-code-point/license shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/is-fullwidth-code-point/package.json shouldn't be copied twice in one bulkcopy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/is-fullwidth-code-point/readme.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/md5-hex/browser.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/md5-hex/index.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/md5-hex/license shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/md5-hex/package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/md5-hex/readme.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/os-locale/index.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/os-locale/license shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/os-locale/package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/os-locale/readme.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/path-type/index.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/path-type/license shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/path-type/package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/path-type/readme.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/read-pkg-up/index.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/read-pkg-up/license shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/read-pkg-up/package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/read-pkg-up/readme.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/read-pkg/index.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/read-pkg/license shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/read-pkg/package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/read-pkg/readme.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/resolve-from/index.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/resolve-from/license shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/resolve-from/package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/resolve-from/readme.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/strip-ansi/index.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/strip-ansi/license shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/strip-ansi/package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/strip-ansi/readme.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/string-width/index.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/string-width/license shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/string-width/package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/string-width/readme.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/which-module/CHANGELOG.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/which-module/LICENSE shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/which-module/README.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/which-module/index.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/which-module/package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/CHANGELOG.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/LICENSE shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/README.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/completion.sh.hbs shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/index.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/lib shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/node_modules shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/yargs.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/lib/apply-extends.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/lib/argsert.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/lib/assign.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/lib/command.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/lib/completion.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/lib/levenshtein.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/lib/obj-filter.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/lib/usage.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/lib/validation.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/lib/yerror.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/node_modules/yargs-parser shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/be.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/de.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/en.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/es.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/fr.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/hi.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/hu.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/id.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/it.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/ja.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/ko.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/nb.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/nl.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/pirate.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/pl.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/pt.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/pt_BR.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/ru.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/th.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/tr.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/zh_CN.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/locales/zh_TW.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/node_modules/yargs-parser/CHANGELOG.md shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/node_modules/yargs-parser/LICENSE.txt shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/node_modules/yargs-parser/README.md shouldn't be copied twice in onebulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/node_modules/yargs-parser/index.js shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/node_modules/yargs-parser/lib shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/node_modules/yargs-parser/package.json shouldn't be copied twice in one bulk copy
warning The case-insensitive file /Users/rosnet/stafflinq-ignite/node_modules/nyc/node_modules/yargs/node_modules/yargs-parser/lib/tokenize-arg-string.js shouldn't be copied twice in one bulk copy
[4/4] 📃 Building fresh packages...
success Saved lockfile.
warning Your current version of Yarn is out of date. The latest version is "1.1.0" while you're on "1.0.2".
info To upgrade, run the following command:
$ curl -o- -L https://yarnpkg.com/install.sh | bash
✨ Done in 23.02s.

Hi everyone! No need for more "happens to me" comments since we have a fairly good understanding of why and how this happens. We'll try to get at this ASAP, and at least suppress the warning since it is not useful to you, as the users.

Apologies for the trouble. In the meantime, if anyone is interested in giving this a shot until we do, feel free to ping me here or on Discord and I'd be happy to guide you!

Related: https://github.com/yarnpkg/yarn/issues/4275

I'd just like to point out that this is still very much an issue. Every yarn version thereafter [email protected] seems to barf when there is a dependency that specifies any bundledDependencies.

I'm a bit concerned with why [email protected] was released with this issue outstanding.

There's a possibly related issue (or perhaps root cause):

As of 1.3.2 bundled dependencies are double installed. Once from the bundle, in the bundling module's node_modules and again into the top level project's node_modules. The latter are the only parts referenced in the lock file.

If the resolver ends up deciding one of those deps currently being installed at the top level has to be hoisted, I think that would cause the problems described here (with multiple of the same destination).

npm, fwiw, records all of the bundled modules in its lockfile, with annotations so it knows that they're sourced from the bundling tarball, not from stand alone downloads.

Thanks for looking into this for us, @iarna, very much appreciated!

@iarna the issue is the complete neglect of bundledDependencies in Yarn right now. Since they are already shipped inside the tarball they get "installed" when we extract the tarball. They get "reinstalled" when yarn simply carries on normal operations by resolving and installing the package's dependencies.

I think blacklisting any node_modules during linking would at least make the behavior sane and we can safely say "we do not support bundledDependencies at the moment". After that, we can start devising a proper solution which may include marking bundledDependencies and excluding them from global resolution.

m

Was this page helpful?
0 / 5 - 0 ratings