hubotio / generator-hubot Goto Github PK
View Code? Open in Web Editor NEWHubot generator for Yeoman
License: MIT License
Hubot generator for Yeoman
License: MIT License
main
branch failed. π¨I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. Iβm sure you can fix this πͺ.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the main
branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here are some links that can help you:
If those donβt help, or if this issue is reporting something you think isnβt right, you can always ask the humans behind semantic-release.
The npm token configured in the NPM_TOKEN
environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/
.
If you are using Two Factor Authentication for your account, set its level to "Authorization only" in your account settings. semantic-release cannot publish with the default "
Authorization and writes" level.
Please make sure to set the NPM_TOKEN
environment variable in your CI with the exact value of the npm token.
Good luck with your project β¨
Your semantic-release bot π¦π
I am trying to install hubot in one of my RHEL 6.0 server (after installing npm and node.js) which is behind the companyβs firewall and not exposed to internet.
I am getting this error. Is there any way to install generator-hubot by downloading the required file instead looking at the internet server registry.npmjs.org.
npm install -g yo generator-hubot
npm ERR! Linux 2.6.32-504.16.2.el6.x86_64
npm ERR! argv "/tmp/chatOps_POC/node-v4.0.0-linux-x64/bin/node" "/tmp/chatOps_POC/node-v4.0.0-linux-x64/bin/npm" "install" "-g" "yo"
npm ERR! node v4.0.0
npm ERR! npm v2.14.2
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! network getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! Please include the following file with any support request:
npm ERR! /tmp/chatOps_POC/hubot/aemhubot/npm-debug.log
I am trying to install the hubot on OSX El Capitan.
I completed this steps below.
$ npm install -g yo generator-hubot
$ mkdir hubot-example
$ cd hubot-example
I found this error when executing yo hubot
.
$ yo hubot
_____________________________
/ \
//\ | Extracting input for |
////\ _____ | self-replication process |
//////\ /_____\ \ /
======= |[^_/\_]| /----------------------------
| | _|___@@__|__
+===+/ /// \_\
| |_\ /// HUBOT/\\
|___/\// / \\
\ / +---+
\____/ | |
| //| +===+
\// |xx|
? Owner shigemk2 <xxxxxxxxxxxxxxxx>
? Bot name hubot-example
? Description A simple helpful robot for your Company
? Bot adapter (campfire) slackgot back false
/usr/local/lib/node_modules/yo/node_modules/rx/dist/rx.js:77
throw e;
^
true
Please tell me the solution.
Hello @joeyguerra ,
After your recent changes, the conditional prompts got converted to permanent prompts.
if (!this.options.owner) {
prompts.push({
name: 'botOwner',
message: 'Owner',
default: botOwner
})
}
This is how the prompts are expected to be. Instead, it now pushes all prompts even if options are passed. Could you please look into fixing the same.
At the README.md template the deploying hubot onto Windows
link incorrectly links to unix.md
rather than windows.md
.
CoffeeScript has kinda fallen out of vogue since Hubot was written. It makes debugging more challenging and plain JavaScript is waaaay more usable nowadays, making CoffeeScript much less compelling.
Perhaps this generator should stop generating modules and Hubots that use CoffeeScript.
I just created a new hubot instance following the steps in the tutorial. I am using a windows machine with these versions:
node -v
v2.2.1
npm -v
2.11.0
npm list -g --depth 0
C:\Users\user\AppData\Roaming\npm
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
When running yo hubot
, this happened:
C:\Users\users\workspace\hubot-instance> yo hubot
module.js:334
throw err;
^
Error: Cannot find module 'define-properties'
at Function.Module._resolveFilename (module.js:332:15)
at Function.Module._load (module.js:282:25)
at Module.require (module.js:361:17)
at require (module.js:380:17)
at Object.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\generator-hubot\node_modules\yeoman-generator\node_modules\download\node_modules\decompress\node_modules\decompress-tar\node_modules\strip-dirs\node_modules\is-integer\node_modules\is-nan\index.js:3:14)
at Module._compile (module.js:426:26)
at Object.Module._extensions..js (module.js:444:10)
at Module.load (module.js:351:32)
at Function.Module._load (module.js:306:12)
at Module.require (module.js:361:17)
at require (module.js:380:17)
I then installed the missing package: npm install -g define-properties
, and tried again to get to the next error:
C:\Users\amenthes\user\hubot-instance> yo hubot
module.js:334
throw err;
^
Error: Cannot find module 'number-is-nan'
at Function.Module._resolveFilename (module.js:332:15)
at Function.Module._load (module.js:282:25)
at Module.require (module.js:361:17)
at require (module.js:380:17)
at Object.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\generator-hubot\node_modules\yeoman-generator\node_modules\download\node_modules\decompress\node_modules\decompress-tar\node_modules\strip-dirs\node_modules\is-integer\node_modules\is-finite\index.js:2:19)
at Module._compile (module.js:426:26)
at Object.Module._extensions..js (module.js:444:10)
at Module.load (module.js:351:32)
at Function.Module._load (module.js:306:12)
at Module.require (module.js:361:17)
After installing that missing dependency as well (npm install -g number-is-nan
), it finally worked.
C:\Users\amenthes\user\hubot-instance> yo hubot
_____________________________
/ \
//\ | Extracting input for |
////\ _____ | self-replication process |
//////\ /_____\ \ /
======= |[^_/\_]| /----------------------------
...
It should be noted, that installing the packages locally (without -g
) did not work.
Am i missing something, or are these packages missing from yo's or generator-hubot's dependencies?
Hi,
I am trying to install the hubot on Windows 8.0.
I completed the below steps without any issues,
npm install -g yo generator-hubot
mkdir myhubot
% cd myhubot
I am trying to use Hipchat as the adapter for this.
When I executed the below command
yo hubot
I am getting the below error. Please see the detailed attached.
C:\Partha\myhubot\node_modules\hubot-hipchat\node_modules\node-xmpp-client\node
_modules\node-xmpp-core\node_modules\node-stringprep\build\node_stringprep.vcxp
roj(20,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props"
was not found. Confirm that the path in the <Import> declaration is correct, a
nd that the file exists on disk.
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
` failed with exit code: 1
Looking at the error it looks like I need to install Visual C++ for this. Can you please confirm the same?
Please see the detailed error below
-----------------------------------------------------------------------------------------------------------------------------------
C:\Partha\myhubot>yo hubot
_____________________________
/ \
//\ | Extracting input for |
////\ _____ | self-replication process |
//////\ /_____\ \ /
======= |[^_/\_]| /----------------------------
| | _|___@@__|__
+===+/ /// \_\
| |_\ /// HUBOT/\\
|___/\// / \\
\ / +---+
\____/ | |
| //| +===+
\// |xx|
? Owner: (User <[email protected]>) [email protected]
? Owner: [email protected]
? Bot name: aemhubot
? Description: A simple helpful robot for your Company
? Bot adapter: (campfire) hipchat
? Bot adapter: hipchat
create bin\hubot
create bin\hubot.cmd
create Procfile
create README.md
create external-scripts.json
create hubot-scripts.json
create .gitignore
create package.json
create scripts\example.coffee
create .editorconfig
_____________________________
_____ / \
\ \ | Self-replication process |
| | _____ | complete... |
|__\\| /_____\ \ Good luck with that. /
|//+ |[^_/\_]| /----------------------------
| | _|___@@__|__
+===+/ /// \_\
| |_\ /// HUBOT/\\
|___/\// / \\
\ / +---+
\____/ | |
| //| +===+
\// |xx|
npm WARN engine [email protected]: wanted: {"node":"~0.12.2"} (current: {"nod
e":"4.1.0","npm":"2.14.3"})
\
> [email protected] install C:\Partha\myhubot\node_modules\hubot-hipchat\nod
e_modules\node-xmpp-client\node_modules\node-xmpp-core\node_modules\node-stringp
rep
> node-gyp rebuild
C:\Partha\myhubot\node_modules\hubot-hipchat\node_modules\node-xmpp-client\node_
modules\node-xmpp-core\node_modules\node-stringprep>if not defined npm_config_no
de_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\n
ode_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
C:\Partha\myhubot\node_modules\hubot-hipchat\node_modules\node-xmpp-client\node
_modules\node-xmpp-core\node_modules\node-stringprep\build\node_stringprep.vcxp
roj(20,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props"
was not found. Confirm that the path in the <Import> declaration is correct, a
nd that the file exists on disk.
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:200:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Partha\myhubot\node_modules\hubot-hipchat\node_modules\node-xmpp
-client\node_modules\node-xmpp-core\node_modules\node-stringprep
gyp ERR! node -v v4.1.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
> [email protected] install C:\Partha\myhubot\node_modules\hubot-hipchat\nod
e_modules\node-xmpp-core\node_modules\node-stringprep
> node-gyp rebuild
C:\Partha\myhubot\node_modules\hubot-hipchat\node_modules\node-xmpp-core\node_mo
dules\node-stringprep>if not defined npm_config_node_gyp (node "C:\Program Files
\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-
gyp.js" rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
C:\Partha\myhubot\node_modules\hubot-hipchat\node_modules\node-xmpp-core\node_m
odules\node-stringprep\build\node_stringprep.vcxproj(20,3): error MSB4019: The
imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that t
he path in the <Import> declaration is correct, and that the file exists on dis
k.
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:200:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Partha\myhubot\node_modules\hubot-hipchat\node_modules\node-xmpp
-core\node_modules\node-stringprep
gyp ERR! node -v v4.1.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
/
> [email protected] install C:\Partha\myhubot\node_modules\hubot-hipchat\node_modules
\node-xmpp-core\node_modules\ltx\node_modules\node-expat\node_modules\iconv
> node-gyp rebuild
C:\Partha\myhubot\node_modules\hubot-hipchat\node_modules\node-xmpp-core\node_mo
dules\ltx\node_modules\node-expat\node_modules\iconv>if not defined npm_config_n
ode_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\
node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
C:\Partha\myhubot\node_modules\hubot-hipchat\node_modules\node-xmpp-core\node_m
odules\ltx\node_modules\node-expat\node_modules\iconv\build\libiconv.vcxproj(20
,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was n
ot found. Confirm that the path in the <Import> declaration is correct, and tha
t the file exists on disk.
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:200:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Partha\myhubot\node_modules\hubot-hipchat\node_modules\node-xmpp
-core\node_modules\ltx\node_modules\node-expat\node_modules\iconv
gyp ERR! node -v v4.1.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "hubot" "hubot-scripts" "hubot-dia
gnostics" "hubot-help" "hubot-heroku-keepalive" "hubot-google-images" "hubot-goo
gle-translate" "hubot-pugme" "hubot-maps" "hubot-redis-brain" "hubot-rules" "hub
ot-shipit" "hubot-hipchat" "--save"
npm ERR! node v4.1.0
npm ERR! npm v2.14.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the node-stringprep package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls node-stringprep
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Partha\myhubot\npm-debug.log
C:\Partha\myhubot>
-----------------------------------------------------------------------------------------------------------------------------------
If you look at https://github.com/github/generator-hubot/blob/master/generators/script/templates/test/template-test.coffee the tests are super week. They only verify that listeners have been registered with specific regexes, which isn't very helpful functionally.
hubot-mock-adapter is what we use for testing our own hubot, and found it really useful, so that'd be better example to include.
I opened this mainly so I could close hubot-archive/hubot-example#3 and hubot-archive/hubot-example#5
At present quite a lot of hubot-*
plugins list one coffee-script
version or another as a dependency. Of those, many are specifing the same version that hubot
itself depends on, and thus it should only been needed for testing and should probably be in devDependencies
.
Some scripts however require more recent versions of coffee-script
for various reasons, by listing it in peerDependencies
rather than dependencies
we get the benefit of npm
detecting conflicting scripts at install time rather than waiting for everything to explode when bin/hubot
gets executed.
Given that coffee-script
isn't in the script template's _package.json
at all (and doesn't need to be) I'm not sure what the best approch here would be (assuming this all makes sense).
One possibility is porting #27 over to allow optionally specifing the coffee-script
version at app creation time, at which point we have the generator write it into peerDependencies as part of the generation. The only problem I forsee with this is that it might not be apparent at creation time that a newer version than 1.6.3
might be required. To combat this a sane default for new scripts might be ^1.6.3
.
This could potentially lead to some weirdness where a peerDependencies
conflict should have arisen but a package erroneously lists the version constraint as ^1.6.3
while in reality requiring a more recent minimum version. My hope is that with some clear documentation it should be a relatively trivial fix (update package.json so next time it will conflict and warn the end user about incompatible scripts at install time).
Hope all that makes some semblance of sense, look forward to hearing your thoughts!
npm install -g coffee-script
. Is it necessary?
npm test
does not work unless install coffee-script. I fixed it. See #11 .
Is the Hubot generator generating from the latest hubot release? It looks like it's still pulling from an old release due to the file structure and files being different from the hubot repo. Specifically, it's referencing an old version of node which seems to be giving all sorts of warnings from Heroku.
/usr/local/lib/node_modules/generator-hubot/generators/app/index.js:72
var userName = this.user.git.name();
^
TypeError: Property 'name' of object # is not a function
at Base.yeoman.generators.Base.extend.prompting.askFor (/usr/local/lib/node_modules/generator-hubot/generators/app/index.js:72:36)
at /usr/local/lib/node_modules/generator-hubot/node_modules/yeoman-generator/lib/base.js:381:14
at processImmediate as _immediateCallback
I recieve this error when yo hubot.
But after iv removed the parenthasis after name and email, it works for me. Any reason for that?
By default, the generated module states MIT
as the license in the package.json
file. However, it does not include the license nor does it let you pick something else during setup.
The latest release of hubot-translate (which is two years old) doesn't work due to changes in the Google Translate API, and that it appears that Google has started to charge for this service. Multiple issues and PRs have been opened against the project, and it appears abandoned.
Maybe consider working with the maintainer(s) of hubot-google-translate or replacing the script in the default external-scripts.json with something that is a bit more recent and hopefully works? For example: https://github.com/kkpoon/hubot-microsoft-translator
Suggested in hubotio/hubot#827 by @mal
We have to run our Hubot on our own hardware due to security policy, unfortunately this means we get messages about missing Heroku URLs when starting up.
I've removed the plugin from the package.json and external-scripts.json but it would good to have it as an option at creation time.
The generator script creates a hubot-scripts.json file, which is deprecated. It should be removed from the generator
https://github.com/github/hubot/blob/498d65611388d2881e6ae24f74bd68a832a24211/bin/hubot#L110-L112
I'm following the instructions here: https://hubot.github.com/docs/.
I have successfully run npm install -g yo generator-hubot
.
$ yo --version
5.0.0
$ npm -v
10.8.1
$ node -v
v22.3.0
Then I mkdir hubot && cd hubot
, and run yo hubot
and accept all defaults.
(node:76306) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
? My Owner hubot
? Bot name mybot
? Description A simple helpful robot for your Company
? Bot adapter shell
_____________________________
/ \
//\ | Extracting input for |
////\ _____ | self-replication process |
//////\ /_____\ \ /
======= |[^_/\_]| /----------------------------
| | _|___@@__|__
+===+/ /// \_\
| |_\ /// HUBOT/\\
|___/\// / \\
\ / +---+
\____/ | |
| //| +===+
\// |xx|
β An error occured while running hubot:app#writing
Error hubot
Cannot read properties of null (reading 'fromBasePath')
β hubot
yo doctor
checks out
β hubot yo doctor
Yeoman Doctor
Running sanity checks on your system
β No .bowerrc file in home directory
β Global configuration file is valid
β NODE_PATH matches the npm root
β No .yo-rc.json file in home directory
β Node.js version
β npm version
β yo version
Everything looks all right!
β hubot
Seems like the same problem as this person: https://stackoverflow.com/questions/78616874/error-cannot-read-properties-of-null-reading-frombasepath-on-hubot-creating.
I think the problem is this line this.copyTemplate('scripts/', 'scripts/', null, this.props)
from app/index.js
, which appears to have been fixed in dd084f6. Seems like maybe just need to cut a new release of this package.
When running yo hubot
it no pass from step bot adapter
, any ideias how to fix it or to manually generate hubot?
$ yo hubot
_____________________________
/ \
//\ | Extracting input for |
////\ _____ | self-replication process |
//////\ /_____\ \ /
======= |[^_/\_]| /----------------------------
| | _|___@@__|__
+===+/ /// \_\
| |_\ /// HUBOT/\\
|___/\// / \\
\ / +---+
\____/ | |
| //| +===+
\// |xx|
? Owner Mario <[email protected]>
? Bot name mhubot
? Description A simple helpful robot for your Company
? Bot adapter (campfire)
I tried to init using "Skype" instead of "skype" as mentioned in this list
https://hubot.github.com/docs/adapters/
but unable to install as hubot-Skype as package is not available in npm.
I was able to init using "skype" as adapter in it.
When trying to run yo hubot
I get the following error:
npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "hubot" "hubot-scripts" "hubot-diagnostics" "hubot-help" "hubot-heroku-keepalive" "hubot-google-images" "hubot-google-translate" "hubot-pugme" "hubot-maps" "hubot-redis-brain" "hubot-rules" "hubot-shipit" "hubot-youtube" "hubot-slack" "--save"
npm ERR! node v0.10.32
npm ERR! npm v2.1.4
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package hubot does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! Please include the following file with any support request:
npm ERR! /Users/me/pathToProject/npm-debug.log
It seems hubot was updated a few days ago, could this be the cause?
When trying to run yo hubot I got this error:
module.js:339
throw err;
^
Error: Cannot find module 'download'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/usr/lib/node_modules/generator-hubot/node_modules/yeoman-generator/lib/actions/fetch.js:3:16)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
It appears like the dependency on the download package is missing.
If I first install the download package, you hubot starts working correctly.
npm install -g download
After trying to install the generator for hubot I got the following error
$ npm install -g generator-hubot
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "generator-hubot"
npm ERR! node v0.10.32
npm ERR! npm v2.1.4
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package phantomjs does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants phantomjs@~1.9.1
npm ERR! Please include the following file with any support request:
npm ERR! /Users/enzo/www/hubot/npm-debug.log
and this is the log
17442 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-installed/read-installed.js:251:14
17443 verbose cwd /Users/enzo/www/hubot
17444 error Darwin 14.0.0
17445 error argv "node" "/usr/local/bin/npm" "install" "-g" "generator-hubot"
17446 error node v0.10.32
17447 error npm v2.1.4
17448 error code EPEERINVALID
17449 error peerinvalid The package phantomjs does not satisfy its siblings' peerDependencies requirements!
17449 error peerinvalid Peer [email protected] wants phantomjs@~1.9.1
On a fresh t2.micro, I install nvm, install a stable Node, and hubot appears to not be able to install! π¦
ubuntu@ip-10-2-6-57:~/hubot$ yo hubot
? ==========================================================================
We're constantly looking for ways to make yo better!
May we anonymously report usage statistics to improve the tool over time?
More info: https://github.com/yeoman/insight & http://yeoman.io
========================================================================== Yes
_____________________________
/ \
//\ | Extracting input for |
////\ _____ | self-replication process |
//////\ /_____\ \ /
======= |[^_/\_]| /----------------------------
| | _|___@@__|__
+===+/ /// \_\
| |_\ /// HUBOT/\\
|___/\// / \\
\ / +---+
\____/ | |
| //| +===+
\// |xx|
? Owner User <[email protected]>
? Bot name hubot
? Description A simple helpful robot for your Company
? Bot adapter shell
create bin/hubot
create bin/hubot.cmd
create Procfile
create README.md
create external-scripts.json
create hubot-scripts.json
create .gitignore
create package.json
create scripts/example.coffee
create .editorconfig
_____________________________
_____ / \
\ \ | Self-replication process |
| | _____ | complete... |
|__\\| /_____\ \ Good luck with that. /
|//+ |[^_/\_]| /----------------------------
| | _|___@@__|__
+===+/ /// \_\
| |_\ /// HUBOT/\\
|___/\// / \\
\ / +---+
\____/ | |
| //| +===+
\// |xx|
npm ERR! Linux 3.13.0-74-generic
npm ERR! argv "/home/ubuntu/.nvm/versions/node/v6.2.1/bin/node" "/home/ubuntu/.nvm/versions/node/v6.2.1/bin/npm" "install" "hubot" "hubot-scripts" "hubot-diagnostics" "hubot-help" "hubot-heroku-keepalive" "hubot-google-images" "hubot-google-translate" "hubot-pugme" "hubot-maps" "hubot-redis-brain" "hubot-rules" "hubot-shipit" "hubot-shell" "--save"
npm ERR! node v6.2.1
npm ERR! npm v3.9.3
npm ERR! code ENOSELF
npm ERR! Refusing to install hubot as a dependency of itself
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/hubot/npm-debug.log
Where should I look next to figure how to finish this hubot install?
master
branch failed. π¨I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. Iβm sure you can resolve this πͺ.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master
branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here is some links that can help you:
If those donβt help, or if this issue is reporting something you think isnβt right, you can always ask the humans behind semantic-release.
The npm token configured in the NPM_TOKEN
environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/
.
If you are using Two-Factor Authentication, make configure the auth-only
level is supported. semantic-release cannot publish with the default auth-and-writes
level.
Please make sure to set the NPM_TOKEN
environment variable in your CI with the exact value of the npm token.
Good luck with your project β¨
Your semantic-release bot π¦π
Hi, I installed hubot through generator-hubot@next, everything seems work fine with the default installation.
I wanted to use nodemon and babel so I changed the bin script to point directly to the node_module/hubot/bin/hubot.js
:
#!/bin/sh
set -e
npm install
export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH"
nodemon --exec babel-node --presets=es2015 -- node_modules/hubot/bin/hubot.js --name "slack-bot" "$@"
but I get the following error:
$: HUBOT_SLACK_TOKEN=xoxb-dsadsadssdasdi ./bin/hubot_dev --adapter slack
up to date in 1.717s
[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `babel-node --presets=es2015 node_modules/hubot/bin/hubot.js --name slack-bot --adapter slack`
[Sun Aug 13 2017 11:12:20 GMT+0100 (BST)] ERROR Cannot load adapter slack - Error: Cannot find module 'hubot-slack'
[nodemon] app crashed - waiting for file changes before starting...
how can I use nodemon and babel properly in this case?
generator-hubot by default is generating the repository url as github.com/hubot-scripts/<my-hubot-script>
Now that the hubot-scripts organization is deprecated and no longer accepting any packages, will it be a good idea to ask for username too and add it as a custom value in _package.json file?
I ran into this during during #58 (comment)
$ yo hubot:script
_____________________________
/ \
//\ | Extracting input for |
////\ _____ | script generation process |
//////\ /_____\ \ /
======= |[^_/\_]| /----------------------------
| | _|___@@__|__
+===+/ /// \_\
| |_\ /// HUBOT/\\
|___/\// / \\
\ / +---+
\____/ | |
| //| +===+
\// |xx|
? Owner Josh Nichols <[email protected]>
? Script name the-thing
? Description A hubot script that does the things
? Keywords hubot, hubot-scripts
/Users/technicalpickles/.nodenv/versions/0.10.30/lib/node_modules/generator-hubot/node_modules/lodash/dist/lodash.js:6309
throw e;
^
SyntaxError: Unexpected identifier
at Function (<anonymous>)
at Function.template (/Users/technicalpickles/.nodenv/versions/0.10.30/lib/node_modules/generator-hubot/node_modules/lodash/dist/lodash.js:6306:22)
at underscore [as _engine] (/Users/technicalpickles/.nodenv/versions/0.10.30/lib/node_modules/generator-hubot/node_modules/yeoman-generator/lib/util/engines.js:31:14)
at engine (/Users/technicalpickles/.nodenv/versions/0.10.30/lib/node_modules/generator-hubot/node_modules/yeoman-generator/lib/actions/actions.js:314:10)
at template (/Users/technicalpickles/.nodenv/versions/0.10.30/lib/node_modules/generator-hubot/node_modules/yeoman-generator/lib/actions/actions.js:289:15)
at yeoman.generators.Base.extend.writing.app (/Users/technicalpickles/.nodenv/versions/0.10.30/lib/node_modules/generator-hubot/generators/script/index.js:130:12)
at /Users/technicalpickles/.nodenv/versions/0.10.30/lib/node_modules/generator-hubot/node_modules/yeoman-generator/lib/base.js:395:14
a
when i am running this command \bin\hubot to run hubot i am getting error like this:-
ERROR Cannot load adapter Campfire - Error: Cannot find module 'hubot-Campfire'
Require stack:
could you please help me resolve this error. Thanks.
When I run yo hubot
as a non-root user, I am receiving the following error:
[richlu@chat r2z2-test3]$ yo hubot
_____________________________
/ \
//\ | Extracting input for |
////\ _____ | self-replication process |
//////\ /_____\ \ /
======= |[^_/\_]| /----------------------------
| | _|___@@__|__
+===+/ /// \_\
| |_\ /// HUBOT/\\
|___/\// / \\
\ / +---+
\____/ | |
| //| +===+
\// |xx|
? Owner r2z2
? Bot name r2z2.api
? Description A simple helpful robot for your Company
? Bot adapter (campfire) rocketchatgot back false
? Bot adapter rocketchat
create bin/hubot
create bin/hubot.cmd
create Procfile
create README.md
create external-scripts.json
create hubot-scripts.json
create .gitignore
create package.json
create scripts/example.coffee
create .editorconfig
_____________________________
_____ / \
\ \ | Self-replication process |
| | _____ | complete... |
|__\\| /_____\ \ Good luck with that. /
|//+ |[^_/\_]| /----------------------------
| | _|___@@__|__
+===+/ /// \_\
| |_\ /// HUBOT/\\
|___/\// / \\
\ / +---+
\____/ | |
| //| +===+
\// |xx|
npm ERR! not a package /tmp/npm-30929-OgybIFr-/github.com/RocketChat/asteroid.git
npm ERR! Error: ENOENT, open '/tmp/npm-30929-OgybIFr-/github.com/RocketChat/asteroid.git-unpack/package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Linux 3.10.0-327.el7.x86_64
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "hubot" "hubot-scripts" "hubot-diagnostics" "hubot-help" "hubot-heroku-keepalive" "hubot-google-images" "hubot-google-translate" "hubot-pugme" "hubot-maps" "hubot-redis-brain" "hubot-rules" "hubot-shipit" "hubot-rocketchat" "--save"
npm ERR! cwd /home/richlu/r2z2-test3
npm ERR! node -v v0.10.40
npm ERR! npm -v 1.4.28
npm ERR! path /tmp/npm-30929-OgybIFr-/github.com/RocketChat/asteroid.git-unpack/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! not ok code 0
My package.json
turns out empty of dependencies. The last time I ran yo hubot
, although a few months now, it was running fine. I had yo installed as root. When I try running yo hubot as root I receive:
[root@chat hubot-test]# yo hubot
Error: EACCES, permission denied '/root/.config'
at Object.fs.mkdirSync (fs.js:654:18)
at sync (/usr/local/lib/node_modules/yo/node_modules/mkdirp/index.js:71:13)
at Function.sync (/usr/local/lib/node_modules/yo/node_modules/mkdirp/index.js:77:24)
at Object.create.all.get (/usr/local/lib/node_modules/yo/node_modules/configstore/index.js:38:13)
at Object.Configstore (/usr/local/lib/node_modules/yo/node_modules/configstore/index.js:27:44)
at new Insight (/usr/local/lib/node_modules/yo/node_modules/insight/lib/index.js:37:34)
at Object.<anonymous> (/usr/local/lib/node_modules/yo/lib/cli.js:130:11)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
The file /root/.config
doesn't exist. I am not sure if this is a relevant issue. I'm just trying to dig deeper and determine where this issue is coming from and would like some help.
Is there any way I can use "yo hubot" from a script like bash, Dockerfile, ansible, etc and pass the parameters in a non-interactive way?
After resolving conflicts and code review please merge
#79 into master.
we are waiting for this functionality to appear in the release version of hubot generator
please check it.
$ npm install generator-hubot
$ ls node_modules/generator-hubot/
README.md node_modules package.json
[eam@ncreamutil001 ~]$ sudo /usr/local/bin/npm install -g yo generator-hubot
> [email protected] postinstall /usr/local/lib/node_modules/yo/node_modules/cross-spawn/node_modules/spawn-sync
> node postinstall
sh: node: command not found
npm WARN deprecated [email protected]: the module is now available as 'css-select'
npm WARN deprecated [email protected]: the module is now available as 'css-what'
npm ERR! Linux 2.6.32-431.29.2.el6.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "yo" "generator-hubot"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] postinstall: `node postinstall`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node postinstall'.
npm ERR! This is most likely a problem with the spawn-sync package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node postinstall
npm ERR! You can get their info via:
npm ERR! npm owner ls spawn-sync
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/eam/npm-debug.log
The README generated by this project suggests that you can only include some scripts from a package with the following external-scripts.json
:
{
"hubot-fun": [
"crazy",
"thanks"
],
"hubot-auto-deploy": "*"
}
However, trying this with the script package I just generated from this project, I am finding that I have to include the file extensions to get it to work:
{
"hubot-fun": [
"crazy.coffee",
"thanks.coffee"
],
"hubot-auto-deploy": "*"
}
Seems like there are three possibilities:
.coffee
extensions to our script files and I missed that memoindex.coffee
, and these two should be reconciledI have install "generator-hubot", when execute command "yo hubot", there is an error,
Error hubot
You don't seem to have a generator with the name hubot installed.
You can see available generators with npm search yeoman-generator and then insta
ll them with npm install [name].
To see the 0 registered generators run yo with the --help
option.
I get the following when trying to run yo hubot:script
$ yo hubot:script
/usr/local/lib/node_modules/generator-hubot/generators/script/index.js:64
var userName = this.user.git.name();
^
TypeError: Property 'name' of object #<Object> is not a function
at Base.yeoman.generators.Base.extend.prompting.askFor (/usr/local/lib/node_modules/generator-hubot/generators/script/index.js:64:36)
at /usr/local/lib/node_modules/generator-hubot/node_modules/yeoman-generator/lib/base.js:381:14
at processImmediate [as _immediateCallback] (timers.js:345:15)
I'm not aware of any extra config I may need to do, but git is configured with a name:
$ git config --list
user.name=Andrew Khoury
I installed the generator via npm install -g yo generator-hubot
on OSX.
Hi,
I'm running mattermost version 4.8.0 on centos 7 server also I installed hubot to connect to mattermost.
I also completely run hubot help and its work on my terminal. But, I having trouble connecting it to mattermost. do you have any suggestion? Please help
Currently, this package uses a very outdated version of yeoman-generator
, 0.17.0. That version contains a further dependency on an outdated version of cheerio
, which depends on several outdated packages, which generate warnings such as the following:
npm WARN deprecated [email protected]: the module is now available as 'css-select'
npm WARN deprecated [email protected]: the module is now available as 'css-what'
npm WARN deprecated [email protected]: no longer maintained
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
That dependency was removed in yeoman-generator
version 0.18.10: yeoman/generator@98f3ab1#diff-b9cfc7f2cdf78a7f4b91a753d10865a2
The current version is now 4.0.2. It may simply need a version bump, but at that much difference, it might also need some adjustments to the code as well. At least moving to version 0.18.10 should remove the warnings and potential issues.
oxyrus:~/ $ npm install -g generator-hubot
npm WARN peerDependencies The peer dependency yo@>=1.0.0 included from generator-hubot will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN deprecated [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0
npm WARN deprecated [email protected]: the module is now available as 'css-select'
npm WARN deprecated [email protected]: the module is now available as 'css-what'
[email protected] /home/ubuntu/.nvm/versions/node/v4.1.1/lib/node_modules/generator-hubot
βββ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
βββ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
βββ [email protected] ([email protected], [email protected], [email protected], [email protected])
βββ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
oxyrus:~/hubot $ yo hubot
Error hubot
You don't seem to have a generator with the name hubot installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 0 registered generators run yo with the `--help` option.
What might be causing it?
1.0 has been in prerelease for quite some time. Wouldn't it make sense to make the transition?
(feel free to close as invalid, this is not really a problem or an issue)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.