# Problem in installing node-red on android

**URL:** <https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638>\
**Category:** General\
**Created:** [6 June 2018 10:10 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638 "2018-06-06T10:10:59Z")\
**Posts on this page:** 19\
**Page:** 2

<div class="post-metadata">

**Author:** ![akszyn\_pl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/akszyn_pl/32/36504_2.png) [@akszyn\_pl](https://discourse.nodered.org/u/akszyn_pl)\
**Post date:** [5 February 2021 19:42 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/21 "2021-02-05T19:42:09Z")

</div>

How to do it to have a different version?

---

<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:** [5 February 2021 19:42 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/22 "2021-02-05T19:42:56Z")

</div>

You can probably use google as well as I can

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [5 February 2021 20:06 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/23 "2021-02-05T20:06:39Z")

</div>

You can also try an older version of node-red, On a test machine I have version 1.1.2 running on android 6x 2gb ram and 16gb storage and nodejs 13 . For some reason i had issues updating nodejs, probably take another crack when I have some spare time.

Try

```auto
npm install -g --unsafe-perm node-red@1.1.2

```

---

<div class="post-metadata">

**Author:** ![akszyn\_pl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/akszyn_pl/32/36504_2.png) [@akszyn\_pl](https://discourse.nodered.org/u/akszyn_pl)\
**Post date:** [5 February 2021 20:18 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/24 "2021-02-05T20:18:04Z")

</div>

thanks we made it

> [@E1cid](#):
>
> Try

And I probably can't have a higher version because after typing `pkg install nodejs` installs to me in version 13 and I do not know how to install lower versions f.e. 12

---

<div class="post-metadata">

**Author:** ![softy2k](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/softy2k/32/23707_2.png) [@softy2k](https://discourse.nodered.org/u/softy2k)\
**Post date:** [5 February 2021 20:29 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/25 "2021-02-05T20:29:18Z")

</div>

Try this : **pkg install nodejs-lts**

---

<div class="post-metadata">

**Author:** ![akszyn\_pl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/akszyn_pl/32/36504_2.png) [@akszyn\_pl](https://discourse.nodered.org/u/akszyn_pl)\
**Post date:** [5 February 2021 20:45 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/26 "2021-02-05T20:45:09Z")

</div>

after typing this command I have version 12 node and after typing

```auto
npm i -g --unsafe-perm node-red

```

installed the latest version for me.

How to set to `node-red` to start automatically after starting termux?

---

<div class="post-metadata">

**Author:** ![anguslou](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/anguslou/32/9212_2.png) [@anguslou](https://discourse.nodered.org/u/anguslou)\
**Post date:** [8 February 2021 09:32 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/27 "2021-02-08T09:32:38Z")

</div>

RedMobile works very well on Xiaomi Note and Galaxy tab 3.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [8 February 2021 09:35 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/28 "2021-02-08T09:35:36Z")

</div>

RedMobile is a pay for app, and the free version has no pallete.

If you use the node-red installation instructions using termux you will get a better and more upto date version.

---

<div class="post-metadata">

**Author:** ![wb666greene](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wb666greene/32/6534_2.png) [@wb666greene](https://discourse.nodered.org/u/wb666greene)\
**Post date:** [8 February 2021 17:17 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/29 "2021-02-08T17:17:44Z")

</div>

> [@akszyn\_pl](#):
>
> How to set to `node-red` to start automatically after starting termux?

Unless they changed, the autostart for termux was a paid feature, $5 if I remember correctly. You can mostly make it work by editing .profile or .bashrc to run your commands. I gave up with it a couple of years ago as the Android phone was much less reliable than the IOT devices I was trying to monitor and send alerts about.

---

<div class="post-metadata">

**Author:** ![akszyn\_pl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/akszyn_pl/32/36504_2.png) [@akszyn\_pl](https://discourse.nodered.org/u/akszyn_pl)\
**Post date:** [8 February 2021 17:22 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/30 "2021-02-08T17:22:20Z")

</div>

where can i find these files ?

> [@wb666greene](#):
>
> You can mostly make it work by editing .profile or .bashrc to run your commands.

To start termux with the typed command after starting the phone?

---

<div class="post-metadata">

**Author:** ![wb666greene](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wb666greene/32/6534_2.png) [@wb666greene](https://discourse.nodered.org/u/wb666greene)\
**Post date:** [8 February 2021 17:27 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/31 "2021-02-08T17:27:19Z")

</div>

Unfortunately that may be Android version and phone provider dependent. Google it.

From the termux wiki:  
Bash is the default shell after installing termux.  
The BASH shell init files are `~/.bashrc` , `$PREFIX/etc/bash.bashrc` and more. See `man bash` and `info bash` for more information.

---

<div class="post-metadata">

**Author:** ![akszyn\_pl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/akszyn_pl/32/36504_2.png) [@akszyn\_pl](https://discourse.nodered.org/u/akszyn_pl)\
**Post date:** [10 March 2021 23:57 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/32 "2021-03-10T23:57:04Z")

</div>

I can't find this file and here on the forum I found such a command `tsudo systemctl start node-red` or `tsudo systemctl enable nodered` but the effect is

> /system/bin/sh: systemctl: not found

But it doesn't work either so how else can I boot from termux?

---

<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 March 2021 07:11 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/33 "2021-03-11T07:11:12Z")

</div>

Does this not work ? [Termux:Boot - Termux Wiki](https://wiki.termux.com/wiki/Termux:Boot)

---

<div class="post-metadata">

**Author:** ![akszyn\_pl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/akszyn_pl/32/36504_2.png) [@akszyn\_pl](https://discourse.nodered.org/u/akszyn_pl)\
**Post date:** [14 August 2021 12:15 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/35 "2021-08-14T12:15:15Z")

</div>

I downloaded Termux:Boot app and created a folder and it doesn't work

 ![Screenshot_2021-08-14-14-31-45-677_com.termux](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/2/c24e03d0e61937ace953bd0409b91c12bda4e344.png)

 ![Screenshot_2021-08-14-14-32-12-169_com.termux](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/3/f3a12f781d76764bc21bafac3ba154067cda97ed.png)

what am I doing wrong that after starting termux, node Red does not start?

---

<div class="post-metadata">

**Author:** ![akszyn\_pl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/akszyn_pl/32/36504_2.png) [@akszyn\_pl](https://discourse.nodered.org/u/akszyn_pl)\
**Post date:** [22 September 2021 14:12 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/36 "2021-09-22T14:12:05Z")

</div>

or for node-red autostart you can also use pm2 on android, if so, how to configure it to be able to use the GUI version that is pm2 plus

```auto
$ pm2 startup
[PM2][ERROR] Init system not found
/data/data/com.termux/files/usr/lib/node_modules/pm2/lib/API/Startup.js:209
      throw new Error('Init system not found');
      ^

Error: Init system not found
    at API.CLI.startup (/data/data/com.termux/files/usr/lib/node_modules/pm2/lib/API/Startup.js:209:13)
    at Command.<anonymous> (/data/data/com.termux/files/usr/lib/node_modules/pm2/lib/binaries/CLI.js:707:9)
    at Command.listener (/data/data/com.termux/files/usr/lib/node_modules/pm2/node_modules/commander/index.js:315:8)
    at Command.emit (events.js:210:5)
    at Command.parseArgs (/data/data/com.termux/files/usr/lib/node_modules/pm2/node_modules/commander/index.js:651:12)
    at Command.parse (/data/data/com.termux/files/usr/lib/node_modules/pm2/node_modules/commander/index.js:474:21)
    at Timeout._onTimeout (/data/data/com.termux/files/usr/lib/node_modules/pm2/lib/binaries/CLI.js:206:15)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7)

```

---

<div class="post-metadata">

**Author:** ![wb666greene](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wb666greene/32/6534_2.png) [@wb666greene](https://discourse.nodered.org/u/wb666greene)\
**Post date:** [22 September 2021 20:27 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/37 "2021-09-22T20:27:36Z")

</div>

It has been quite some time since I used it, but I seem to recall starting node-red from the termux .bashrc or .profile file that runs a set of initial commands.

---

<div class="post-metadata">

**Author:** ![SoumyadeepChatterjee](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/soumyadeepchatterjee/32/8973_2.png) [@SoumyadeepChatterjee](https://discourse.nodered.org/u/SoumyadeepChatterjee)\
**Post date:** [12 November 2021 03:45 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/38 "2021-11-12T03:45:53Z")

</div>

$ npm i -g --unsafe-perm node-red  
npm ERR! Exit handler never called!

npm ERR! This is an error with npm itself. Please report this error at:  
npm ERR! [https://github.com/npm/cli/issues](https://github.com/npm/cli/issues)

npm ERR! A complete log of this run can be found in:  
npm ERR! /data/data/com.termux/files/home/.npm/\_logs/2021-11-12T03\_43\_21\_248Z-debug.log

Always getting this error and I am trying to install node red since 2 weeks now but I am not able to understand how to resolve the issue

---

<div class="post-metadata">

**Author:** ![SoumyadeepChatterjee](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/soumyadeepchatterjee/32/8973_2.png) [@SoumyadeepChatterjee](https://discourse.nodered.org/u/SoumyadeepChatterjee)\
**Post date:** [12 November 2021 03:58 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/39 "2021-11-12T03:58:34Z")

</div>

npm -v  
8.1.2  
node -v  
v17.1.0  
~ $ npm i -g --unsafe-perm node-red  
npm ERR! Exit handler never called!

npm ERR! This is an error with npm itself. Please report this error at:  
npm ERR! [https://github.com/npm/cli/issues](https://github.com/npm/cli/issues)

npm ERR! A complete log of this run can be found in:  
npm ERR! /data/data/com.termux/files/home/.npm/\_logs/2021-11-12T03\_57\_15\_918Z-debug.log  
Since 2 weeks I am trying to install and this is persistant. I am not a pro in linux env and that is why I am unable to resolve this on my own.  
I just want an installation to try Node-red and then if everything works out then I'll get a RPi as a dedicated server.  
Could you please tell me how to get around the error?

---

<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 November 2021 09:23 UTC](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638/40 "2021-11-12T09:23:23Z")

</div>

I suggest going back to nodejs v16 as 17 is very new and may have problems. Also possibly drop back npm to 7.

Also, running on Android can be a pain anyway. If you are just doing it to test node-red then do it on your PC or get the Pi. It will save you time in the long run.

[Previous page](https://discourse.nodered.org/t/problem-in-installing-node-red-on-android/638.md?page=1)
