bnb-chain / javascript-sdk

Javascript SDK to communicate with BNB Beacon Chain.
Apache License 2.0
382 stars 240 forks source link

[egg-scripts] Failed to initialize libusb. #152

Closed ucfyao closed 5 years ago

ucfyao commented 5 years ago

At the time of development,It's ok npm run dev

When I deploy npm start

got error


[egg-scripts] Save log file to /root/logs
[egg-scripts] Wait Start: 1...
[egg-scripts] Wait Start: 2...
[egg-scripts] tail -n 100 /root/logs/master-stderr.log
[egg-scripts] Got error when startup:
[egg-scripts] Failed to initialize libusb.
[egg-scripts] Failed to initialize libusb.
[egg-scripts] Failed to initialize libusb.
[egg-scripts]
[egg-scripts] Start got error, see /root/logs/master-stderr.log
[egg-scripts] Or use `--ignore-stderr` to ignore stderr at startup.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! web3_egg@1.0.0 start: `egg-scripts start --daemon --title=egg-server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the web3_egg@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-06-14T08_20_25_139Z-debug.log
ucfyao commented 5 years ago

Ubuntu sudo apt-get install libudev-dev libusb-dev usbutils how centos ? yum install libusb usbutils libudev-devel libgudev1

Need more?

notatestuser commented 5 years ago

Sorry I'm not aware of what "egg-scripts" is. If it uses webpack then we have instructions here.

notatestuser commented 5 years ago

You could also try installing npm dependencies without optional packages now:

$ npm i @binance-chain/javascript-sdk --no-optional

There's more information about this in the README.