# Node-red-start not working

**URL:** <https://discourse.nodered.org/t/node-red-start-not-working/45233>\
**Category:** General\
**Created:** [5 May 2021 19:12 UTC](https://discourse.nodered.org/t/node-red-start-not-working/45233 "2021-05-05T19:12:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fatima221](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fatima221/32/39935_2.png) [@Fatima221](https://discourse.nodered.org/u/Fatima221)\
**Post date:** [5 May 2021 19:12 UTC](https://discourse.nodered.org/t/node-red-start-not-working/45233/1 "2021-05-05T19:12:24Z")

</div>

Hello,

I was trying to make the node red work as a service on raspberry pi, so it starts on boot, and so, I don't have to use a monitor or an SSH each time I am using the raspberry pi (I use the raspberry pi's GPIO pins with node-red).  
Every time I use the command `node-red`, it works perfectly fine and I can open the browser page. But, whenever I use the `node-red-start` or `sudo systemctl enable nodered.service` commands, I get the same error in the logs, that node-red-pi does not exit in /usr/bin/env:

 ![node-red-start1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/9/d9f56b9f5320890981ec12ad09bb0d938b5a0dd5.jpeg)

Upon using the `which` command for both `node-red` and `node-red-start` commands, I found that they are not in the same place:  
node-red-start:  
 ![node-red-start](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/7/b733fad7cfe52dc5e4dea239c1782694b58bcace.jpeg)  
node-red:  
 ![which node-red](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/3/43353bd183fea66478f5a358d17097e69249a41f.jpeg)

I am not sure if this is the problem ..?  
Also, I think I should mention that I downloaded and installed the node red at first from the zip folder, but then after facing this problem I reinstalled (but I can still see my flow) it with the bash script in the nodeRED documentation as I saw that it was advised to do so.  
There was no problem with the script:

 ![install scrip](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/b/4b2b6a6ba441d05a1aa183e77025908e6b2ce507.jpeg)

I hope you can help me with this please.  
Thank you in advance!

Fatima

---

<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:** [5 May 2021 20:28 UTC](https://discourse.nodered.org/t/node-red-start-not-working/45233/2 "2021-05-05T20:28:50Z")

</div>

Your problem is revieled by a single letter! "n" as in `/home/pi/n/...`.

`n` is a tool for managing multiple versions of node.js and your system is somewhat confused.

I recommend that you undo some steps. Remove n and any of its folders. Check that node.js is correctly installed as a system-wide installation. Check that Node-RED is globally installed.

---

<div class="post-metadata">

**Author:** ![Fatima221](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fatima221/32/39935_2.png) [@Fatima221](https://discourse.nodered.org/u/Fatima221)\
**Post date:** [5 May 2021 22:16 UTC](https://discourse.nodered.org/t/node-red-start-not-working/45233/3 "2021-05-05T22:16:08Z")

</div>

Thank you very much! It's working now!

I removed the `n` folder as you have suggested and reinstalled the node-red with the bash script, and it works!  
I can now run the node-red with the IP address as well 🎉

---

<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:** [19 May 2021 22:16 UTC](https://discourse.nodered.org/t/node-red-start-not-working/45233/4 "2021-05-19T22:16:45Z")

</div>

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