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

Error: Cannot find module './dist' #9

Open
barl0g opened this issue Jul 29, 2020 · 0 comments
Open

Error: Cannot find module './dist' #9

barl0g opened this issue Jul 29, 2020 · 0 comments

Comments

@barl0g
Copy link

barl0g commented Jul 29, 2020

When I run
~/opt/algo-trading-server> sudo docker-compose up

I receive an error at the end.

iguana_1  | > NODE_ENV=production node index.js
iguana_1  |
iguana_1  | internal/modules/cjs/loader.js:582
iguana_1  |     throw err;
iguana_1  |     ^
iguana_1  |
iguana_1  | Error: Cannot find module './dist'
iguana_1  |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
iguana_1  |     at Function.Module._load (internal/modules/cjs/loader.js:506:25)
iguana_1  |     at Module.require (internal/modules/cjs/loader.js:636:17)
iguana_1  |     at require (internal/modules/cjs/helpers.js:20:18)
iguana_1  |     at Object.<anonymous> (/app/index.js:15:3)
iguana_1  |     at Module._compile (internal/modules/cjs/loader.js:688:30)
iguana_1  |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
iguana_1  |     at Module.load (internal/modules/cjs/loader.js:598:32)
iguana_1  |     at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
iguana_1  |     at Function.Module._load (internal/modules/cjs/loader.js:529:3)
iguana_1  | npm ERR! code ELIFECYCLE
iguana_1  | npm ERR! errno 1
iguana_1  | npm ERR! iguana-trading-bot@2.0.0 start-prod: `NODE_ENV=production node index.js`
iguana_1  | npm ERR! Exit status 1
iguana_1  | npm ERR!
iguana_1  | npm ERR! Failed at the iguana-trading-bot@2.0.0 start-prod script.
iguana_1  | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
iguana_1  |
iguana_1  | npm ERR! A complete log of this run can be found in:
iguana_1  | npm ERR!     /root/.npm/_logs/2020-07-29T08_16_45_380Z-debug.log
iguana_1  | npm ERR! code ELIFECYCLE
iguana_1  | npm ERR! errno 1
iguana_1  | npm ERR! iguana-trading-bot@2.0.0 start: `cross-env NODE_ENV=production npm run db:up; npm run start-prod`
iguana_1  | npm ERR! Exit status 1
iguana_1  | npm ERR!
iguana_1  | npm ERR! Failed at the iguana-trading-bot@2.0.0 start script.
iguana_1  | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
iguana_1  |
iguana_1  | npm ERR! A complete log of this run can be found in:
iguana_1  | npm ERR!     /root/.npm/_logs/2020-07-29T08_16_45_399Z-debug.log
algotradingserver_iguana_1 exited with code 1
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

1 participant