Gekko Forum
First Start Error module.js:550 - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Technical Support (https://forum.gekko.wizb.it/forum-19.html)
+--- Thread: First Start Error module.js:550 (/thread-57665.html)



First Start Error module.js:550 - Bransonb3 - 09-18-2018

I got this error after following the installation steps. I am running this on CentOS 7 and NodeJS v8.12.0. I have tried to completely delete gekko and try again and I got the same error.
Just tried to install on Windows Server 2016 with NodeJS v8.12.0 and I got the same error.


module.js:550
    throw err;
    ^

Error: Cannot find module '/root/gekko/exchange/gekko'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Function.Module.runMain (module.js:694:10)
    at startup (bootstrap_node.js:204:16)
    at bootstrap_node.js:625:3


RE: First Start Error module.js:550 - cubit - 09-18-2018

Hi Branson,

I am total gekko noob so apologies if this is no help, but here are some basics that might assist -

module.js:550
throw err;
^

Find the file called module.js and have a look at line 550. Does that give you any hints on what might be wrong?

I assume this error is from the CentOS version -

Error: Cannot find module '/root/gekko/exchange/gekko'

Does that file/path exist?

If that error is from the Windows version then that's probably your issue... that's a Linux path! Smile

Hth,

Cubit.


RE: First Start Error module.js:550 - Bransonb3 - 09-18-2018

Sorry about that the error on windows is the same except the file path. On windows that line says Error: Cannot find module 'C:\Users\BrantekAdmin\Documents\gekko-stable\exchange\gekko'

The gekko folder in the exchange folder doesn't exist on either of my machines or the GitHub.


RE: First Start Error module.js:550 - cubit - 09-18-2018

Okay... let's go back a step. Have you followed the guide here?

https://gekko.wizb.it/docs/installation/installing_gekko_on_windows.html

Did it all go okay? Any errors?


RE: First Start Error module.js:550 - Bransonb3 - 09-18-2018

I tried to post the command output here but it was marked as spam so I put it on pastebin.
https://pastebin.com/2XRJkDn5
It doesn't look like there is any errors there but I could be wrong.


RE: First Start Error module.js:550 - cubit - 09-18-2018

Okay.. I agree there don't appear to be any errors in there!

I have gekko-stable from a few weeks ago. I tried the same as you and got a different output - I didn't see any reference to sqlite3. I just downloaded the latest gekko-stable and now I see what you are seeing!

I haven't gone any further... I would first advise trying gekko-develop version (which is what I ended up running instead of gekko-stable) and see if that works any better for you! Smile


RE: First Start Error module.js:550 - Bransonb3 - 09-19-2018

https://github.com/askmike/gekko/issues/2546

I needed to run node gekko --ui from the gekko (or gekko-stable) folder instead of from gekko/exchange.


RE: First Start Error module.js:550 - cubit - 09-19-2018

Ah yes... now you say that I do recall that the first time I tried it! Glad you got it sorted.


RE: First Start Error module.js:550 - askmike - 10-19-2018

I have updated the documentation to include the `cd ..` step!


RE: First Start Error module.js:550 - Mieko53 - 11-10-2019

Hello there ! I've been looking for this error all day and finally I found it. I was hoping that somebody could help me solve this same error since i am not using gekko for this project.

root@csgoreign:~# nodejs driver
module.js:550
throw err;
^

Error: Cannot find module '/root/driver'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3

is the error im getting and when I try installing with npm install /root/driver
npm ERR! code ENOLOCAL
npm ERR! Could not install from "driver" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-11-10T04_14_11_257Z-debug.log


The complete log :

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '/root/driver' ]
2 info using npm@6.13.0
3 info using node@v8.16.2
4 verbose config Skipping project config: /root/.npmrc. (matches userconfig)
5 verbose npm-session 44f0b3e8bf453d93
6 silly install loadCurrentTree
7 silly install readLocalPackageData
8 silly fetchPackageMetaData error for file:/root/driver Could not install from "driver" as it does not contain a package.json file.
9 timing stage:rollbackFailedOptional Completed in 0ms
10 timing stage:runTopLevelLifecycles Completed in 51ms
11 verbose stack Error: ENOENT: no such file or directory, open '/root/driver/package.json'
12 verbose cwd /root
13 verbose Linux 4.15.0-66-generic
14 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "/root/driver"
15 verbose node v8.16.2
16 verbose npm v6.13.0
17 error code ENOLOCAL
18 error Could not install from "driver" as it does not contain a package.json file.
19 verbose exit [ 1, true ]

Thank you