crypto-trading-bot icon indicating copy to clipboard operation
crypto-trading-bot copied to clipboard

Can't Start

Open qvs5010 opened this issue 4 years ago • 2 comments

Hi

I get the following error when i try to start the bot.

is there something i have to do? i added my api details.

[root@crypto-trading-bot-master]# npm start

> [email protected] start /var/tradeBot/crypto-trading-bot-master
> node index.js trade

internal/modules/cjs/loader.js:1025
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: /var/tradeBot/crypto-trading-bot-master/node_modules/talib/build/Release/talib.node: invalid ELF header
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1025:18)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/var/tradeBot/crypto-trading-bot-master/src/utils/indicators.js:2:15)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node index.js trade`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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/2021-01-03T15_50_37_645Z-debug.log

qvs5010 avatar Jan 03 '21 15:01 qvs5010

Fixed, just had to reinstall "npm i talib"

qvs5010 avatar Jan 03 '21 21:01 qvs5010

npm i talib not worked for me.

sankhaKarunasekara avatar Jan 31 '21 11:01 sankhaKarunasekara