09-18-2018, 03:41 PM
(This post was last modified: 09-18-2018, 07:29 PM by Bransonb3.
Edit Reason: Added more info
)
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
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.
Ah yes... now you say that I do recall that the first time I tried it! Glad you got it sorted.
I have updated the documentation to include the `cd ..` step!
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