Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install - name conflicts with an existing file #2

Open
krtorio opened this issue Oct 5, 2017 · 3 comments
Open

Unable to install - name conflicts with an existing file #2

krtorio opened this issue Oct 5, 2017 · 3 comments

Comments

@krtorio
Copy link

krtorio commented Oct 5, 2017

I am unable to install the package

Command used:
composer require wemersonjanuario/wkhtmltopdf-windows "0.12.2.3" -vvv

Output:
Package operations: 1 install, 0 updates, 0 removals
Installs: wemersonjanuario/wkhtmltopdf-windows:0.12.2.3

  • Installing wemersonjanuario/wkhtmltopdf-windows (0.12.2.3): Reading C:/Users/Win8/AppData/Local/Composer/files/wemersonjanuario/wkhtmltopdf-windows/57c4fd5596d6849f3e145153272eef5179ba54d7.zip from cache
    Loading from cache
    Extracting archive Skipped installation of bin bin/64bit/wkhtmltopdf.exe for package wemersonjanuario/wkhtmltopdf-windows: name conflicts with an existing file
    Skipped installation of bin bin/64bit/wkhtmltoimage.exe for package wemersonjanuario/wkhtmltopdf-windows: name conflicts with an existing file
    REASON: Required by the root package: Install command rule (install wemersonjanuario/wkhtmltopdf-windows 0.12.2.3)
@kirkmadera
Copy link

You likely have a custom bin-dir defined in your composer.json. You either need to remove that or manually delete the files that conflict on composer install.

See https://getcomposer.org/doc/articles/vendor-binaries.md#can-vendor-binaries-be-installed-somewhere-other-than-vendor-bin-.

You can potentially have the same logic without this error on composer install by adding a symlink:

ln -s vendor/bin bin

Note: You might have to rm -rf bin first or else it will make a symlink bin/bin to vendor/bin.

@nwaweru
Copy link

nwaweru commented Aug 5, 2022

I am experiencing the same issue.

Any solution?

@lucasferro0
Copy link

lucasferro0 commented Aug 25, 2024

This occurs because in version 0.12.2.3 the owner of the lib placed two .bin files with the same name.
I suggest using this link and downloading it: https://wkhtmltopdf.org/downloads.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants