javascript-sdk
javascript-sdk copied to clipboard
Remove the need for libusd/libudev when installing with --no-optional
I shouldn't need to install libudev-dev, libusb-dev and usbutils when I don't want Ledger support.
For now I had to fork this repo and eliminate all Ledger-related code so I don't get a "libusd not found" error when I npm install.
It would be nice to make an option where if I install with --no-option I don't need to also install the above mentioned deps.
You can use --no-optional.
$ npm i @binance-chain/javascript-sdk --no-optional
From the readme: https://github.com/binance-chain/javascript-sdk#install-the-npm-package
Closed by mistake. Let me know if there's something I'm missing here.
I did use --no-optional and it still gave me an error saying something like "libudev not found"
@stefanionescu can you try with yarn add @binance-chain/javascript-sdk --no-optional.
I tried --no-optional and it still gives the same errors. For now I forked the repo and removed libusd/libudev entirely from the code