在Ubuntu中本地测试Hubot(Testing Hubot locally in Ubuntu)

编程入门 行业动态 更新时间:2024-10-24 11:25:29
在Ubuntu中本地测试Hubot(Testing Hubot locally in Ubuntu)

您好Stackoverflow社区,

好吧,我正在研究hubot的脚本。 在开始编码之前,我正在尝试在命令行中测试一些hubot命令 (我已经在Windows中做过了但由于某些原因我要改为Ubuntu环境以开始编写这个全新的自定义hubot)我想要能够在终端>Hubot PING写入并获得响应PONG才能开始工作。

直到现在我已经通过nodenv https://github.com/OiNutter/nodenv安装了Node.js,我测试了我的节点>node -v ,得到了v0.10.22 。 我分叉我的hubot并在本地克隆,然后应用~./hubot> npm install来获取所有依赖项,一切似乎~./hubot> npm install 。 然后我去了安装文件夹>cd node_modules/hosted-hubot ,它在hubot文件夹中有一个名为bin的文件夹。

所以,到目前为止,一切似乎./bin/hubot ,我试图在命令行中执行: ./bin/hubot并且我无法在本地运行hubot,它给了我: nodenv:版本`v0.8'没有安装 。 我尝试安装较旧版本的节点0.8并得到相同的消息。

所以就是这样,希望你们能帮助我尝试在本地测试我的hubot

提前致谢!!!

Hi Stackoverflow community,

Well the thing is that I'm working on a script for hubot. Before starting to code I'm trying to test some hubot commands in the command line (I already did it in Windows but for some reasons I've to change to Ubuntu environment to start to code this brand new custom hubot) I'd like to be able to write in the terminal >Hubot PING and get a response PONG to start to work.

Till now I've already installed Node.js through nodenv https://github.com/OiNutter/nodenv and I tested my node >node -v, got v0.10.22. I forked my hubot and cloned locally and then apply ~./hubot> npm install to get all the dependencies and everything seems OK. Then I went to the installation folder >cd node_modules/hosted-hubot which has a folder called bin, inside the hubot folder.

So, till this point everything seemed OK and I tried to do in the command line: ./bin/hubot and I'm not able to run hubot locally, it gave me: nodenv: version `v0.8' is not installed. I tried to install an older version of node 0.8 and got the same message.

So that's it, hope you guys can help me to try to test my hubot locally

Thanks in advance!!!

最满意答案

我做了一个全新的安装,我安装node.js没有nodenv,一切正常。 它可能不是更好的解决方案,但它是我所做的。

I made a fresh install and I instal node.js without nodenv and everything works properly. It may not be the better solution but it was what I did.

更多推荐

本文发布于:2023-07-26 03:50:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1270714.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:测试   Ubuntu   Hubot   locally   Testing

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!