Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Error: Command is not a function #191

Closed
bryanbartow opened this issue May 26, 2017 · 3 comments
Closed

Error: Command is not a function #191

bryanbartow opened this issue May 26, 2017 · 3 comments

Comments

@bryanbartow
Copy link

Just updated from master and ran command zenbot trade and got the following error:

/home/zenbot/zenbot.sh:19
    command(program)
    ^

TypeError: command is not a function
    at /home/zenbot/zenbot.sh:19:5
    at Array.forEach (native)
    at /home/zenbot/zenbot.sh:18:12
    at /home/zenbot/boot.js:30:7
    at f (/home/zenbot/node_modules/once/once.js:25:25)
    at Glob.<anonymous> (/home/zenbot/node_modules/glob/glob.js:151:7)
    at emitOne (events.js:96:13)
    at Glob.emit (events.js:191:7)
    at Glob._finish (/home/zenbot/node_modules/glob/glob.js:199:8)
    at done (/home/zenbot/node_modules/glob/glob.js:184:14)

Funny thing is, zenbot.sh hasn't been updated in a while, so I don't see any breaking change there. Anyone else?

@carlos8f
Copy link
Contributor

that's weird. before line 19 if you console.log(commands), what do you get?

@esalter
Copy link

esalter commented May 26, 2017

Probably have to do

npm install

@DeviaVir
Copy link
Owner

DeviaVir commented Jun 3, 2017

Closing due this ticket already being answered with what I believe is the correct answer, feel free to comment in case you still have this problem.

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

4 participants