# \[SOLVED\] Help with hubot installation

**URL:** <https://forum.mattermost.com/t/solved-help-with-hubot-installation/4048>\
**Category:** Troubleshooting\
**Created:** [November 3, 2017, 3:58pm UTC](https://forum.mattermost.com/t/solved-help-with-hubot-installation/4048 "2017-11-03T15:58:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vlee](https://avatars.discourse-cdn.com/v4/letter/v/96bed5/32.png) [@vlee](https://forum.mattermost.com/u/vlee)\
**Post date:** [November 3, 2017, 3:58pm UTC](https://forum.mattermost.com/t/solved-help-with-hubot-installation/4048/1 "2017-11-03T15:58:41Z")

</div>

Hello all,

I am trying to follow along with the hubot documentation ([Getting Started With Hubot | HUBOT](https://hubot.github.com/docs/)).  
I have installed node.js and npm on my ubuntu system without any issues but when I enter the command “npm install -g yo generator-hubot” it gives me a permissions error. I then add sudo in front of it and it runs. I then go to the next step to make a directory and try to run yo hubot. I then get the error “EACCESS: permission denied” even when I run it as sudo yo hubot.

Do any of you have any advice on how to proceed?  
Thank you.

- Victoria

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [November 10, 2017, 8:08am UTC](https://forum.mattermost.com/t/solved-help-with-hubot-installation/4048/2 "2017-11-10T08:08:12Z")

</div>

Hi @vlee,

Thanks for your feedback,

@loafoe might be able to help with your Hubot issue

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [November 10, 2017, 5:12pm UTC](https://forum.mattermost.com/t/solved-help-with-hubot-installation/4048/3 "2017-11-10T17:12:28Z")

</div>

Solving this issue and linking to @vlee’s other issue: [Hubot and mattermost adapter](https://forum.mattermost.com/t/hubot-and-mattermost-adapter/4103)

---

<div class="post-metadata">

**Author:** ![estellj](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/estellj/32/1680_2.png) [@estellj](https://forum.mattermost.com/u/estellj)\
**Post date:** [November 13, 2017, 7:51pm UTC](https://forum.mattermost.com/t/solved-help-with-hubot-installation/4048/4 "2017-11-13T19:51:11Z")

</div>

I have seen this issue with NPM and yo on Xenial (16.04.3). This isn’t an issue with Mattermost really, but a problem of permissions as outlined here:

[https://github.com/yeoman/yeoman.github.io/issues/282](https://github.com/yeoman/yeoman.github.io/issues/282)

You can try to follow those steps and modify _/root/.config /root/.config/configstore_ but in the end its better to start over with the installation process and follow it to the letter. The most likely cause of this is that you were root at some point in the install and that messed things up.

This comment in particular may shed some light on your issue: [https://github.com/yeoman/yeoman.github.io/issues/282#issuecomment-69625203](https://github.com/yeoman/yeoman.github.io/issues/282#issuecomment-69625203)

good luck,  
josh

---

<div class="post-metadata">

**Author:** ![nilden](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/nilden/32/1999_2.png) [@nilden](https://forum.mattermost.com/u/nilden)\
**Post date:** [April 17, 2018, 8:56am UTC](https://forum.mattermost.com/t/solved-help-with-hubot-installation/4048/5 "2018-04-17T08:56:46Z")

</div>

@ vlee  
I also encountered this issue. what I do is create a new user account as a user then log out my root account then, log in again using the user account a created. after that i run the first command using sudo like “sudo npm install -g yo generator-hubot” then, run the second command without sudo “yo hubot --adapter matteruser”

Hope it will help you too

---

<div class="post-metadata">

**Author:** ![at4446](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@at4446](https://forum.mattermost.com/u/at4446)\
**Post date:** [August 9, 2019, 8:49pm UTC](https://forum.mattermost.com/t/solved-help-with-hubot-installation/4048/6 "2019-08-09T20:49:40Z")

</div>

hey did you have mattermost running separately? did he integration happen successfully?
