wighawag / hardhat-deploy

hardhat deployment plugin
MIT License
1.18k stars 286 forks source link

Install error: cannot find -lusb-1.0: No such file or directory #393

Closed enigram closed 1 year ago

enigram commented 1 year ago

Describe the bug When I install this module, it tries to build node-hid and the cannot find -lusb-1.0: No such file or directory error is printed despite succeeding.

To Reproduce Steps to reproduce the behavior:

  1. execute npm install -D hardhat-deploy on Ubuntu 22.04.1 2 Installation succeeds, but what's the dependency needed for?

Expected behavior Install all dependencies automatically, or mention libusb in the README

versions

Additional context I'm not sure why the node-hid package is a dependency. I presume that it's needed at some point if deploying using a hardware wallet, but when I check the dependency tree using this tool http://npm.anvaka.com/#/view/2d/hardhat-deploy, I don't see that package listed.

If libusb is a dependency for this package, shouldn't it be mentioned in the README?

enigram commented 1 year ago

I haven't noticed earlier that this error comes from a different dependency.

Apologies for confusions, issue can be closed.