# Installing Node Red on freenas

**URL:** <https://discourse.nodered.org/t/installing-node-red-on-freenas/6706>\
**Category:** General\
**Created:** [11 January 2019 21:52 UTC](https://discourse.nodered.org/t/installing-node-red-on-freenas/6706 "2019-01-11T21:52:26Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dayve](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@Dayve](https://discourse.nodered.org/u/Dayve)\
**Post date:** [11 January 2019 21:52 UTC](https://discourse.nodered.org/t/installing-node-red-on-freenas/6706/1 "2019-01-11T21:52:26Z")

</div>

I have Node Red running on one server and would like to move everything over to my FreeNAS. Node Red is installed and working on the new server but I can not install nodes or update any.  
I get a error like:

Failed to update: node-red-node-email  
Module not locally installed  
Check the log for more information

Could this be a permissions problem?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [11 January 2019 21:58 UTC](https://discourse.nodered.org/t/installing-node-red-on-freenas/6706/2 "2019-01-11T21:58:47Z")

</div>

that one isn’t , if you search the forum for email node and update you should find a full explanation.

What happens if you try to install a new contrib-node?

---

<div class="post-metadata">

**Author:** ![Dayve](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@Dayve](https://discourse.nodered.org/u/Dayve)\
**Post date:** [11 January 2019 22:02 UTC](https://discourse.nodered.org/t/installing-node-red-on-freenas/6706/3 "2019-01-11T22:02:29Z")

</div>

If I try to install a new node I get this:

Failed to install: node-red-contrib-home-assistant  
Error: Install failed  
Check the log for more information

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 January 2019 22:19 UTC](https://discourse.nodered.org/t/installing-node-red-on-freenas/6706/4 "2019-01-11T22:19:45Z")

</div>

What does the log say? Also try installing manually from the command line.

Note that the 0.20 beta gives you much better output from installing nodes. Nice.

---

<div class="post-metadata">

**Author:** ![Dayve](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@Dayve](https://discourse.nodered.org/u/Dayve)\
**Post date:** [11 January 2019 23:52 UTC](https://discourse.nodered.org/t/installing-node-red-on-freenas/6706/5 "2019-01-11T23:52:08Z")

</div>

Thanks guys. I found that git was not installed in the jail.

How would I go about upgrading to 0.20 beta?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [12 January 2019 00:16 UTC](https://discourse.nodered.org/t/installing-node-red-on-freenas/6706/6 "2019-01-12T00:16:34Z")

</div>

> [@Dayve](#):
>
> How would I go about upgrading to 0.20 beta?

Just follow the instructions in Nick's release post.

---

<div class="post-metadata">

**Author:** ![Dayve](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@Dayve](https://discourse.nodered.org/u/Dayve)\
**Post date:** [12 January 2019 14:13 UTC](https://discourse.nodered.org/t/installing-node-red-on-freenas/6706/7 "2019-01-12T14:13:38Z")

</div>

> [@TotallyInformation](#):
>
> Just follow the instructions in Nick's release post.

Thanks that was easy to upgrade.

My next thing is does anyone know how to auto start Node Red on Freenas/Freebsd running in a jail? Or should I start a new topic about this?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [12 January 2019 14:33 UTC](https://discourse.nodered.org/t/installing-node-red-on-freenas/6706/8 "2019-01-12T14:33:40Z")

</div>

i’d suggest doing some research to see how you autostart other things on a freenas

---

<div class="post-metadata">

**Author:** ![Dayve](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@Dayve](https://discourse.nodered.org/u/Dayve)\
**Post date:** [12 January 2019 14:51 UTC](https://discourse.nodered.org/t/installing-node-red-on-freenas/6706/9 "2019-01-12T14:51:43Z")

</div>

Ya I have been reading and searching. Still cannot find the answer.

I have the jail auto starting at boot but I need to open a shell in the Node Red jail and start it with "node-red". And if I log out of the jail or shell then Node Red stops.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [12 January 2019 14:53 UTC](https://discourse.nodered.org/t/installing-node-red-on-freenas/6706/10 "2019-01-12T14:53:14Z")

</div>

If you can’t find it on a freenas forum the chances of anyone on a NodeRED forum knowing the answer is slim

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [12 January 2019 15:06 UTC](https://discourse.nodered.org/t/installing-node-red-on-freenas/6706/11 "2019-01-12T15:06:17Z")

</div>

The first hit I got on google suggested using pm2. I have no experience of it though.

> **[Can someone help install node-red into a jail?](https://forums.freenas.org/index.php?threads/can-someone-help-install-node-red-into-a-jail.48066/)**
>
> I recently found this awesome project: http://nodered.org/ and I thought I could give it a try inside a standard jail on freeNAS 9.10 U4
> 
> So I did
> pkg update
> pkg upgrade
> pkg install node
> pkg install npm
> 
> followed by npm install -g --unsafe-perm...

---

<div class="post-metadata">

**Author:** ![Dayve](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@Dayve](https://discourse.nodered.org/u/Dayve)\
**Post date:** [12 January 2019 15:29 UTC](https://discourse.nodered.org/t/installing-node-red-on-freenas/6706/12 "2019-01-12T15:29:47Z")

</div>

Thanks Colin. Not sure how I missed that one but that worked 😄
