# Node-Red does not run as a service on a raspberry

**URL:** <https://discourse.nodered.org/t/node-red-does-not-run-as-a-service-on-a-raspberry/29901>\
**Category:** General\
**Created:** [11 July 2020 14:36 UTC](https://discourse.nodered.org/t/node-red-does-not-run-as-a-service-on-a-raspberry/29901 "2020-07-11T14:36:09Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdrees](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@tdrees](https://discourse.nodered.org/u/tdrees)\
**Post date:** [11 July 2020 14:36 UTC](https://discourse.nodered.org/t/node-red-does-not-run-as-a-service-on-a-raspberry/29901/1 "2020-07-11T14:36:09Z")

</div>

Hi, I just upgraded my Node-Red on my Raspberry to the lastet version.

When I try to start it using "./node-red" it starts without any problem.

But when I try to start it as a service using "node-red-start" I am getting the output

"Node-RED is not yet fully installed. Please re-run the install script again manually.  
bash \<(curl -sL [https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered](https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered))  
then retry node-red-start"

I tried to re-install using that script (I have been using it also for the first install), but I still get this message.....

What am I doing wrong here?

Regards,

Torsten

---

<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:** [11 July 2020 15:29 UTC](https://discourse.nodered.org/t/node-red-does-not-run-as-a-service-on-a-raspberry/29901/2 "2020-07-11T15:29:00Z")

</div>

Can you post the install log here please /var/log/nodered-install.log  
Copy/paste it if possible, using the `</>` button.  
There may be multiple install logs in there, in which case just the last one.

**[Edit]** Also what to the commands `node -v` and `npm -v` show?

---

<div class="post-metadata">

**Author:** ![tdrees](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@tdrees](https://discourse.nodered.org/u/tdrees)\
**Post date:** [11 July 2020 15:43 UTC](https://discourse.nodered.org/t/node-red-does-not-run-as-a-service-on-a-raspberry/29901/3 "2020-07-11T15:43:59Z")

</div>

node -v shows "v10.21.0"  
nmp -v shows "6.14.4"

I have uploaded the install logfile.

[nodered-install.log.txt](https://discourse.nodered.org/uploads/short-url/lvq881cSV2huIpYn9pvnhULdG6a.txt) (28.9 KB)

---

<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:** [11 July 2020 16:56 UTC](https://discourse.nodered.org/t/node-red-does-not-run-as-a-service-on-a-raspberry/29901/4 "2020-07-11T16:56:10Z")

</div>

It seems you have been using nvm to manage versions of nodejs. The install script doesn't handle that I don't think.  
I believe that if you want to use nvm then you will have to do the node red install manually.

---

<div class="post-metadata">

**Author:** ![tdrees](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@tdrees](https://discourse.nodered.org/u/tdrees)\
**Post date:** [11 July 2020 17:09 UTC](https://discourse.nodered.org/t/node-red-does-not-run-as-a-service-on-a-raspberry/29901/5 "2020-07-11T17:09:08Z")

</div>

I am not sure what you really mean. I have followed an instruction how to install Node-Red 0.27 (something around that version) and now I have upgraded to that new version. Can you tell me what to do in order to install it properly?  
I don't care if I manage versions of nodejs with nvm or something else ....

---

<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:** [11 July 2020 17:32 UTC](https://discourse.nodered.org/t/node-red-does-not-run-as-a-service-on-a-raspberry/29901/6 "2020-07-11T17:32:42Z")

</div>

Which instructions did you follow? If it told you to use nvm then it led you up the garden path.  
nvm (Npm Version Manager?) is a tool for managing multiple versions of npm. I don't know how to get rid of it. Perhaps someone else does.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [11 July 2020 17:37 UTC](https://discourse.nodered.org/t/node-red-does-not-run-as-a-service-on-a-raspberry/29901/7 "2020-07-11T17:37:46Z")

</div>

> <https://github.com/nvm-sh/nvm/issues/1543>
>
> Hello!
> I've installed NVM with the script provided:
> curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
> If I am understanding everything correctly the only thing this file...

Then re -run the Pi install script  
[https://nodered.org/docs/getting-started/raspberrypi](https://nodered.org/docs/getting-started/raspberrypi)

---

<div class="post-metadata">

**Author:** ![tdrees](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@tdrees](https://discourse.nodered.org/u/tdrees)\
**Post date:** [11 July 2020 20:31 UTC](https://discourse.nodered.org/t/node-red-does-not-run-as-a-service-on-a-raspberry/29901/8 "2020-07-11T20:31:07Z")

</div>

Thanks, that solved the problem.

---

<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:** [11 July 2020 20:35 UTC](https://discourse.nodered.org/t/node-red-does-not-run-as-a-service-on-a-raspberry/29901/9 "2020-07-11T20:35:50Z")

</div>

Can you share the link you used to install please? It would be good to provide some feedback to the author, if possible.

---

<div class="post-metadata">

**Author:** ![tdrees](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@tdrees](https://discourse.nodered.org/u/tdrees)\
**Post date:** [14 July 2020 15:35 UTC](https://discourse.nodered.org/t/node-red-does-not-run-as-a-service-on-a-raspberry/29901/10 "2020-07-14T15:35:26Z")

</div>

I am sorry, but I do not have the link I used for the installation of 0.2x in the past. This is way too long ago.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 September 2020 15:35 UTC](https://discourse.nodered.org/t/node-red-does-not-run-as-a-service-on-a-raspberry/29901/11 "2020-09-12T15:35:29Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
