Skip to content
This repository was archived by the owner on Feb 25, 2019. It is now read-only.

nv-commands fail without env variables set #41

Closed
tomkersten opened this issue Jun 16, 2014 · 2 comments
Closed

nv-commands fail without env variables set #41

tomkersten opened this issue Jun 16, 2014 · 2 comments
Labels

Comments

@tomkersten
Copy link
Contributor

On a clean installation, if the environment variables here are not set, an error is thrown.

The error is:

TypeError: First argument needs to be a number, array or string.
    at new Buffer (buffer.js:188:15)
    at module.exports (/usr/local/lib/node_modules/anvil-connect/config/server.js:564:16)
    at Object.<anonymous> (/usr/local/lib/node_modules/anvil-connect/server.js:15:27)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/anvil-connect/lib/cli/init-db.js:6:14)
Usage: nv [--version] [--help] <command> [<args>]

Info:

$ node -v
v0.10.28
$ nv --version
Anvil Connect v0.1.15
$ echo $ANVIL_CONNECT_PUBLIC_KEY

$ echo $ANVIL_CONNECT_PRIVATE_KEY

After setting these...the command works fine.

@christiansmith
Copy link
Member

Good catch. I see the problem and working on a fix right now. Thanks!

@christiansmith
Copy link
Member

0b59639 solves this. Install release >= 0.1.17

Thanks again @tomkersten

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

No branches or pull requests

2 participants