Hubot-slack: i'm new to create Hubot,when i run the Hubot "bin/hubot" using this command,''bin'' is not recognized as an internal or external command, operable program or batch file. error came like this can anyone give me a solution

Created on 30 Oct 2017  Â·  9Comments  Â·  Source: slackapi/hubot-slack

Description

Describe your issue here.

Requirements (place an x in each of the [ ])

  • [x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • [ ] I've read and agree to the Code of Conduct.
  • [ ] I've searched for any related issues and avoided creating a duplicate issue.
question

Most helpful comment

"The system cannot find the path specified." error solution :

modify the file of bin/bubot.cmd
change
node_modules.bin\hubot.cmd --name "myhubot" %*
to
..\node_modules.bin\hubot.cmd --name "myhubot" %*

save it and try again.

All 9 comments

by the fact that you mentioned batch files, it sounds like you are running on windows. i suggest you take a look at the hubot documentation for deploying to windows. at first glance, it sounds like you might just be using the wrong slashes (./bin/hubot -> .\bin\hubot).

closing, but if this continues to be a problem, feel free to comment and we can reopen.

Hi,

Thank you for your valuable commands,still i'm facing issue.

i did the following steps:

step 1:npm install -g yo generator-hubot
step2: mkdir myhubot cd my hubot
step3: yo hubot
step4: bin\hubot

if i am using .\bin\hubot i'll get the following error :"The system cannot
find the path specified."

pls send a demo of simple hubot run

Thanks in advance.

Thanks,

With Best Regards
Nagaraj G
Mobile:+91 96776-75209

On Tue, Oct 31, 2017 at 1:21 AM, Ankur Oberoi notifications@github.com
wrote:

closing, but if this continues to be a problem, feel free to comment and
we can reopen.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/slackapi/hubot-slack/issues/446#issuecomment-340563762,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AeKAcm28SPIm54Qme7PjtIJtfVT55yOhks5sxijGgaJpZM4QLDTu
.

i don't have a windows machine available right now to test on, but if you use .\bin\hubot.cmd, will that work? the error is saying the file doesn't exist, so you should check the contents of the bin directory to see what is there and what might be missing. just, cd bin, then dir to see what is inside that directory.

i haven't heard back, so i'll assume this issue is resolved.

I am getting the below error
When i run ".bin\hubot" on windows CLI. Do i need to set any path for MySQL?

_up to date in 0.92s
'MySQL' is not recognized as an internal or external command,
operable program or batch file.
'MySQL' is not recognized as an internal or external command,
operable program or batch file.
'node' is not recognized as an internal or external command,
operable program or batch file._

@mvsuhas hubot and the hubot-slack adapter do not have any dependency on MySQL. if you are using another package to store hubot data in MySQL, i think you'll find more useful help from knowledgeable people who build that package.

"The system cannot find the path specified." error solution :

modify the file of bin/bubot.cmd
change
node_modules.bin\hubot.cmd --name "myhubot" %*
to
..\node_modules.bin\hubot.cmd --name "myhubot" %*

save it and try again.

It started giving a new error now-
coffee:10:5: error: Can't reference 'this' before calling super in derived class
constructors
@data =

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rb1980 picture rb1980  Â·  6Comments

nfons picture nfons  Â·  6Comments

juilianoj picture juilianoj  Â·  4Comments

tigris picture tigris  Â·  4Comments

jabbink picture jabbink  Â·  4Comments