11-10-2019, 04:14 AM
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
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