Skip to content
This repository has been archived by the owner on Oct 11, 2020. It is now read-only.

--config command does not work #57

Open
rugk opened this issue May 16, 2016 · 0 comments
Open

--config command does not work #57

rugk opened this issue May 16, 2016 · 0 comments

Comments

@rugk
Copy link

rugk commented May 16, 2016

According to --help it should just load a config file, but in fact it tries to load some kind of module:

$ ./cli.js -c config.json
Error: Cannot find module 'config.json'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/.../node_modules/img.bi-server/cli.js:13:14)
    at after (/.../node_modules/cli/cli.js:1057:18)
    at Object.cli.main (/.../node_modules/cli/cli.js:1062:9)
    at Object.<anonymous> (/.../node_modules/img.bi-server/cli.js:10:5)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:148:18)
    at node.js:405:3

It only works when I'll specify the path like this:

$ ./cli.js -c ./config.json

It should however handle both cases.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant