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

how to fix it??? #286

Open
mojito228 opened this issue Jan 10, 2022 · 4 comments
Open

how to fix it??? #286

mojito228 opened this issue Jan 10, 2022 · 4 comments

Comments

@mojito228
Copy link

crypto-trading-bot@0.0.0 start
node index.js trade

internal/modules/cjs/loader.js:818
throw err;
^

Error: Cannot find module '../dict/exchange_candlestick'
Require stack:

  • /home/r/1/crypto-trading-bot/node_modules/binance-api-node/index.js
  • /home/r/1/crypto-trading-bot/src/exchange/binance.js
  • /home/r/1/crypto-trading-bot/src/modules/services.js
  • /home/r/1/crypto-trading-bot/src/command/trade.js
  • /home/r/1/crypto-trading-bot/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object. (/home/r/1/crypto-trading-bot/node_modules/binance-api-node/index.js:5:29)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/r/1/crypto-trading-bot/node_modules/binance-api-node/index.js',
    '/home/r/1/crypto-trading-bot/src/exchange/binance.js',
    '/home/r/1/crypto-trading-bot/src/modules/services.js',
    '/home/r/1/crypto-trading-bot/src/command/trade.js',
    '/home/r/1/crypto-trading-bot/index.js'
    ]
    }
@Wladastic
Copy link

Are you using npm run or docker-compose?

@DominiqueGEORGES
Copy link

Same problem !

I do not know "npm", thus using docker-compose

@Wladastic
Copy link

Run npm install first

@DominiqueGEORGES
Copy link

DominiqueGEORGES commented Oct 11, 2022 via email

Repository owner deleted a comment Jan 31, 2024
Repository owner deleted a comment from mkproject-admin Feb 21, 2024
Repository owner deleted a comment from mkproject-admin Feb 21, 2024
Repository owner deleted a comment from Arran5353 Feb 23, 2024
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

3 participants